[
  {
    "title": "Create a model response",
    "canonical": "responses/create",
    "description": "Creates a model response. Provide [text](/docs/guides/text) or\n[image](/docs/guides/images) inputs to generate [text](/docs/guides/text)\nor [JSON](/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](/docs/guides/function-calling) or use built-in\n[tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)\nor [file search](/docs/guides/tools-file-search) to use your own data\nas input for the model's response.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/responses",
      "group": [
        "Responses",
        "Responses"
      ],
      "fullPath": "https://api.openai.com/v1/responses",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Text input",
              "codeblock": {
                "title": "Text input",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"input\": \"Tell me a three sentence bedtime story about a unicorn.\"\n  }'\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst response = await openai.responses.create({\n    model: \"gpt-4.1\",\n    input: \"Tell me a three sentence bedtime story about a unicorn.\"\n});\n\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.responses.create(\n  model=\"gpt-4.1\",\n  input=\"Tell me a three sentence bedtime story about a unicorn.\"\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nOpenAIResponse response = client.CreateResponse(\"Tell me a three sentence bedtime story about a unicorn.\");\n\nConsole.WriteLine(response.GetOutputText());\n"
                  }
                ]
              }
            },
            {
              "description": "Image input",
              "codeblock": {
                "title": "Image input",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"input\": [\n      {\n        \"role\": \"user\",\n        \"content\": [\n          {\"type\": \"input_text\", \"text\": \"what is in this image?\"},\n          {\n            \"type\": \"input_image\",\n            \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"\n          }\n        ]\n      }\n    ]\n  }'\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst response = await openai.responses.create({\n    model: \"gpt-4.1\",\n    input: [\n        {\n            role: \"user\",\n            content: [\n                { type: \"input_text\", text: \"what is in this image?\" },\n                {\n                    type: \"input_image\",\n                    image_url:\n                        \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n                },\n            ],\n        },\n    ],\n});\n\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.responses.create(\n    model=\"gpt-4.1\",\n    input=[\n        {\n            \"role\": \"user\",\n            \"content\": [\n                { \"type\": \"input_text\", \"text\": \"what is in this image?\" },\n                {\n                    \"type\": \"input_image\",\n                    \"image_url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"\n                }\n            ]\n        }\n    ]\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.Collections.Generic;\n\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nList<ResponseItem> inputItems =\n[\n    ResponseItem.CreateUserMessageItem(\n        [\n            ResponseContentPart.CreateInputTextPart(\"What is in this image?\"),\n            ResponseContentPart.CreateInputImagePart(new Uri(\"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"))\n        ]\n    )\n];\n\nOpenAIResponse response = client.CreateResponse(inputItems);\n\nConsole.WriteLine(response.GetOutputText());\n"
                  }
                ]
              }
            },
            {
              "description": "Web search",
              "codeblock": {
                "title": "Web search",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"tools\": [{ \"type\": \"web_search_preview\" }],\n    \"input\": \"What was a positive news story from today?\"\n  }'\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst response = await openai.responses.create({\n    model: \"gpt-4.1\",\n    tools: [{ type: \"web_search_preview\" }],\n    input: \"What was a positive news story from today?\",\n});\n\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.responses.create(\n    model=\"gpt-4.1\",\n    tools=[{ \"type\": \"web_search_preview\" }],\n    input=\"What was a positive news story from today?\",\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nstring userInputText = \"What was a positive news story from today?\";\n\nResponseCreationOptions options = new()\n{\n    Tools =\n    {\n        ResponseTool.CreateWebSearchTool()\n    },\n};\n\nOpenAIResponse response = client.CreateResponse(userInputText, options);\n\nConsole.WriteLine(response.GetOutputText());\n"
                  }
                ]
              }
            },
            {
              "description": "File search",
              "codeblock": {
                "title": "File search",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"tools\": [{\n      \"type\": \"file_search\",\n      \"vector_store_ids\": [\"vs_1234567890\"],\n      \"max_num_results\": 20\n    }],\n    \"input\": \"What are the attributes of an ancient brown dragon?\"\n  }'\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst response = await openai.responses.create({\n    model: \"gpt-4.1\",\n    tools: [{\n      type: \"file_search\",\n      vector_store_ids: [\"vs_1234567890\"],\n      max_num_results: 20\n    }],\n    input: \"What are the attributes of an ancient brown dragon?\",\n});\n\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.responses.create(\n    model=\"gpt-4.1\",\n    tools=[{\n      \"type\": \"file_search\",\n      \"vector_store_ids\": [\"vs_1234567890\"],\n      \"max_num_results\": 20\n    }],\n    input=\"What are the attributes of an ancient brown dragon?\",\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nstring userInputText = \"What are the attributes of an ancient brown dragon?\";\n\nResponseCreationOptions options = new()\n{\n    Tools =\n    {\n        ResponseTool.CreateFileSearchTool(\n            vectorStoreIds: [\"vs_1234567890\"],\n            maxResultCount: 20\n        )\n    },\n};\n\nOpenAIResponse response = client.CreateResponse(userInputText, options);\n\nConsole.WriteLine(response.GetOutputText());\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"instructions\": \"You are a helpful assistant.\",\n    \"input\": \"Hello!\",\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.responses.create(\n  model=\"gpt-4.1\",\n  instructions=\"You are a helpful assistant.\",\n  input=\"Hello!\",\n  stream=True\n)\n\nfor event in response:\n  print(event)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst response = await openai.responses.create({\n    model: \"gpt-4.1\",\n    instructions: \"You are a helpful assistant.\",\n    input: \"Hello!\",\n    stream: true,\n});\n\nfor await (const event of response) {\n    console.log(event);\n}\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.ClientModel;\nusing System.Threading.Tasks;\n\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nstring userInputText = \"Hello!\";\n\nResponseCreationOptions options = new()\n{\n    Instructions = \"You are a helpful assistant.\",\n};\n\nAsyncCollectionResult<StreamingResponseUpdate> responseUpdates = client.CreateResponseStreamingAsync(userInputText, options);\n\nawait foreach (StreamingResponseUpdate responseUpdate in responseUpdates)\n{\n    if (responseUpdate is StreamingResponseOutputTextDeltaUpdate outputTextDeltaUpdate)\n    {\n        Console.Write(outputTextDeltaUpdate.Delta);\n    }\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Functions",
              "codeblock": {
                "title": "Functions",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"input\": \"What is the weather like in Boston today?\",\n    \"tools\": [\n      {\n        \"type\": \"function\",\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather in a given location\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n              \"type\": \"string\",\n              \"description\": \"The city and state, e.g. San Francisco, CA\"\n            },\n            \"unit\": {\n              \"type\": \"string\",\n              \"enum\": [\"celsius\", \"fahrenheit\"]\n            }\n          },\n          \"required\": [\"location\", \"unit\"]\n        }\n      }\n    ],\n    \"tool_choice\": \"auto\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\ntools = [\n    {\n        \"type\": \"function\",\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather in a given location\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n              \"location\": {\n                  \"type\": \"string\",\n                  \"description\": \"The city and state, e.g. San Francisco, CA\",\n              },\n              \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n          },\n          \"required\": [\"location\", \"unit\"],\n        }\n    }\n]\n\nresponse = client.responses.create(\n  model=\"gpt-4.1\",\n  tools=tools,\n  input=\"What is the weather like in Boston today?\",\n  tool_choice=\"auto\"\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst tools = [\n    {\n        type: \"function\",\n        name: \"get_current_weather\",\n        description: \"Get the current weather in a given location\",\n        parameters: {\n            type: \"object\",\n            properties: {\n                location: {\n                    type: \"string\",\n                    description: \"The city and state, e.g. San Francisco, CA\",\n                },\n                unit: { type: \"string\", enum: [\"celsius\", \"fahrenheit\"] },\n            },\n            required: [\"location\", \"unit\"],\n        },\n    },\n];\n\nconst response = await openai.responses.create({\n    model: \"gpt-4.1\",\n    tools: tools,\n    input: \"What is the weather like in Boston today?\",\n    tool_choice: \"auto\",\n});\n\nconsole.log(response);\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nResponseTool getCurrentWeatherFunctionTool = ResponseTool.CreateFunctionTool(\n    functionName: \"get_current_weather\",\n    functionDescription: \"Get the current weather in a given location\",\n    functionParameters: BinaryData.FromString(\"\"\"\n        {\n            \"type\": \"object\",\n            \"properties\": {\n                \"location\": {\n                    \"type\": \"string\",\n                    \"description\": \"The city and state, e.g. San Francisco, CA\"\n                },\n                \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}\n            },\n            \"required\": [\"location\", \"unit\"]\n        }\n        \"\"\"\n    )\n);\n\nstring userInputText = \"What is the weather like in Boston today?\";\n\nResponseCreationOptions options = new()\n{\n    Tools =\n    {\n        getCurrentWeatherFunctionTool\n    },\n    ToolChoice = ResponseToolChoice.CreateAutoChoice(),\n};\n\nOpenAIResponse response = client.CreateResponse(userInputText, options);\n"
                  }
                ]
              }
            },
            {
              "description": "Reasoning",
              "codeblock": {
                "title": "Reasoning",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"o3-mini\",\n    \"input\": \"How much wood would a woodchuck chuck?\",\n    \"reasoning\": {\n      \"effort\": \"high\"\n    }\n  }'\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nconst response = await openai.responses.create({\n    model: \"o3-mini\",\n    input: \"How much wood would a woodchuck chuck?\",\n    reasoning: {\n      effort: \"high\"\n    }\n});\n\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.responses.create(\n    model=\"o3-mini\",\n    input=\"How much wood would a woodchuck chuck?\",\n    reasoning={\n        \"effort\": \"high\"\n    }\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing OpenAI.Responses;\n\nOpenAIResponseClient client = new(\n    model: \"o3-mini\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nstring userInputText = \"How much wood would a woodchuck chuck?\";\n\nResponseCreationOptions options = new()\n{\n    ReasoningOptions = new()\n    {\n        ReasoningEffortLevel = ResponseReasoningEffortLevel.High,\n    },\n};\n\nOpenAIResponse response = client.CreateResponse(userInputText, options);\n\nConsole.WriteLine(response.GetOutputText());\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Text input",
              "codeblock": {
                "title": "Text input",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b\",\n  \"object\": \"response\",\n  \"created_at\": 1741476542,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"output\": [\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67ccd2bf17f0819081ff3bb2cf6508e60bb6a6b452d3795b\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars. As she dipped her horn into the water, the pool began to shimmer, revealing a pathway to a magical realm of endless night skies. Filled with wonder, Lumina whispered a wish for all who dream to find their own hidden magic, and as she glanced back, her hoofprints sparkled like stardust.\",\n          \"annotations\": []\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 36,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 87,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 123\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Image input",
              "codeblock": {
                "title": "Image input",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41\",\n  \"object\": \"response\",\n  \"created_at\": 1741476777,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"output\": [\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.\",\n          \"annotations\": []\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 328,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 52,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 380\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Web search",
              "codeblock": {
                "title": "Web search",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ccf18ef5fc8190b16dbee19bc54e5f087bb177ab789d5c\",\n  \"object\": \"response\",\n  \"created_at\": 1741484430,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"output\": [\n    {\n      \"type\": \"web_search_call\",\n      \"id\": \"ws_67ccf18f64008190a39b619f4c8455ef087bb177ab789d5c\",\n      \"status\": \"completed\"\n    },\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67ccf190ca3881909d433c50b1f6357e087bb177ab789d5c\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"As of today, March 9, 2025, one notable positive news story...\",\n          \"annotations\": [\n            {\n              \"type\": \"url_citation\",\n              \"start_index\": 442,\n              \"end_index\": 557,\n              \"url\": \"https://.../?utm_source=chatgpt.com\",\n              \"title\": \"...\"\n            },\n            {\n              \"type\": \"url_citation\",\n              \"start_index\": 962,\n              \"end_index\": 1077,\n              \"url\": \"https://.../?utm_source=chatgpt.com\",\n              \"title\": \"...\"\n            },\n            {\n              \"type\": \"url_citation\",\n              \"start_index\": 1336,\n              \"end_index\": 1451,\n              \"url\": \"https://.../?utm_source=chatgpt.com\",\n              \"title\": \"...\"\n            }\n          ]\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [\n    {\n      \"type\": \"web_search_preview\",\n      \"domains\": [],\n      \"search_context_size\": \"medium\",\n      \"user_location\": {\n        \"type\": \"approximate\",\n        \"city\": null,\n        \"country\": \"US\",\n        \"region\": null,\n        \"timezone\": null\n      }\n    }\n  ],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 328,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 356,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 684\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            },
            {
              "description": "File search",
              "codeblock": {
                "title": "File search",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ccf4c55fc48190b71bd0463ad3306d09504fb6872380d7\",\n  \"object\": \"response\",\n  \"created_at\": 1741485253,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"output\": [\n    {\n      \"type\": \"file_search_call\",\n      \"id\": \"fs_67ccf4c63cd08190887ef6464ba5681609504fb6872380d7\",\n      \"status\": \"completed\",\n      \"queries\": [\n        \"attributes of an ancient brown dragon\"\n      ],\n      \"results\": null\n    },\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67ccf4c93e5c81909d595b369351a9d309504fb6872380d7\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"The attributes of an ancient brown dragon include...\",\n          \"annotations\": [\n            {\n              \"type\": \"file_citation\",\n              \"index\": 320,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 576,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 815,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 815,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 1030,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 1030,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 1156,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            },\n            {\n              \"type\": \"file_citation\",\n              \"index\": 1225,\n              \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n              \"filename\": \"dragons.pdf\"\n            }\n          ]\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [\n    {\n      \"type\": \"file_search\",\n      \"filters\": null,\n      \"max_num_results\": 20,\n      \"ranking_options\": {\n        \"ranker\": \"auto\",\n        \"score_threshold\": 0.0\n      },\n      \"vector_store_ids\": [\n        \"vs_1234567890\"\n      ]\n    }\n  ],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 18307,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 348,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 18655\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "event: response.created\ndata: {\"type\":\"response.created\",\"response\":{\"id\":\"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654\",\"object\":\"response\",\"created_at\":1741290958,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful assistant.\",\"max_output_tokens\":null,\"model\":\"gpt-4.1-2025-04-14\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}}}\n\nevent: response.in_progress\ndata: {\"type\":\"response.in_progress\",\"response\":{\"id\":\"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654\",\"object\":\"response\",\"created_at\":1741290958,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful assistant.\",\"max_output_tokens\":null,\"model\":\"gpt-4.1-2025-04-14\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}}}\n\nevent: response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"output_index\":0,\"item\":{\"id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"type\":\"message\",\"status\":\"in_progress\",\"role\":\"assistant\",\"content\":[]}}\n\nevent: response.content_part.added\ndata: {\"type\":\"response.content_part.added\",\"item_id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"\",\"annotations\":[]}}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"output_index\":0,\"content_index\":0,\"delta\":\"Hi\"}\n\n...\n\nevent: response.output_text.done\ndata: {\"type\":\"response.output_text.done\",\"item_id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"output_index\":0,\"content_index\":0,\"text\":\"Hi there! How can I assist you today?\"}\n\nevent: response.content_part.done\ndata: {\"type\":\"response.content_part.done\",\"item_id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"Hi there! How can I assist you today?\",\"annotations\":[]}}\n\nevent: response.output_item.done\ndata: {\"type\":\"response.output_item.done\",\"output_index\":0,\"item\":{\"id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"Hi there! How can I assist you today?\",\"annotations\":[]}]}}\n\nevent: response.completed\ndata: {\"type\":\"response.completed\",\"response\":{\"id\":\"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654\",\"object\":\"response\",\"created_at\":1741290958,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":\"You are a helpful assistant.\",\"max_output_tokens\":null,\"model\":\"gpt-4.1-2025-04-14\",\"output\":[{\"id\":\"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"Hi there! How can I assist you today?\",\"annotations\":[]}]}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":37,\"output_tokens\":11,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":48},\"user\":null,\"metadata\":{}}}\n"
                  }
                ]
              }
            },
            {
              "description": "Functions",
              "codeblock": {
                "title": "Functions",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ca09c5efe0819096d0511c92b8c890096610f474011cc0\",\n  \"object\": \"response\",\n  \"created_at\": 1741294021,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"output\": [\n    {\n      \"type\": \"function_call\",\n      \"id\": \"fc_67ca09c6bedc8190a7abfec07b1a1332096610f474011cc0\",\n      \"call_id\": \"call_unLAR8MvFNptuiZK6K6HCy5k\",\n      \"name\": \"get_current_weather\",\n      \"arguments\": \"{\\\"location\\\":\\\"Boston, MA\\\",\\\"unit\\\":\\\"celsius\\\"}\",\n      \"status\": \"completed\"\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"description\": \"Get the current weather in a given location\",\n      \"name\": \"get_current_weather\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"location\": {\n            \"type\": \"string\",\n            \"description\": \"The city and state, e.g. San Francisco, CA\"\n          },\n          \"unit\": {\n            \"type\": \"string\",\n            \"enum\": [\n              \"celsius\",\n              \"fahrenheit\"\n            ]\n          }\n        },\n        \"required\": [\n          \"location\",\n          \"unit\"\n        ]\n      },\n      \"strict\": true\n    }\n  ],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 291,\n    \"output_tokens\": 23,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 314\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Reasoning",
              "codeblock": {
                "title": "Reasoning",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ccd7eca01881908ff0b5146584e408072912b2993db808\",\n  \"object\": \"response\",\n  \"created_at\": 1741477868,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"o1-2024-12-17\",\n  \"output\": [\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67ccd7f7b5848190a6f3e95d809f6b44072912b2993db808\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"The classic tongue twister...\",\n          \"annotations\": []\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": \"high\",\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 81,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 1035,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 832\n    },\n    \"total_tokens\": 1116\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "previous_response_id",
                "type": "string",
                "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "ResponsesOnlyModel",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "o1-pro",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-pro-2025-03-19",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "reasoning",
                "type": "object",
                "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "effort",
                    "type": "$$enum",
                    "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ReasoningEffort",
                      "canonical": "objects/ReasoningEffort",
                      "label": "ReasoningEffort"
                    }
                  },
                  {
                    "name": "summary",
                    "type": "$$enum",
                    "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "generate_summary",
                    "type": "$$enum",
                    "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "deprecated",
                        "value": "true"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "max_output_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "text",
                "type": "object",
                "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
                "meta": [],
                "properties": [
                  {
                    "name": "format",
                    "type": "$$xor",
                    "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                    "properties": [
                      {
                        "name": "Text",
                        "type": "object",
                        "description": "Default response format. Used to generate text responses.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatText",
                          "canonical": "objects/ResponseFormatText",
                          "label": "ResponseFormatText"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `text`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "JSON schema",
                        "type": "object",
                        "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/TextResponseFormatJsonSchema",
                          "canonical": "objects/TextResponseFormatJsonSchema",
                          "label": "TextResponseFormatJsonSchema"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_schema`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_schema"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_schema",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "JSON object",
                        "type": "object",
                        "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonObject",
                          "canonical": "objects/ResponseFormatJsonObject",
                          "label": "ResponseFormatJsonObject"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_object`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_object"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_object",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatConfiguration",
                      "canonical": "objects/TextResponseFormatConfiguration",
                      "label": "TextResponseFormatConfiguration"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "File search",
                      "type": "object",
                      "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchTool",
                        "canonical": "objects/FileSearchTool",
                        "label": "FileSearchTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool. Always `file_search`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "file_search"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "vector_store_ids",
                          "type": "$$array",
                          "description": "The IDs of the vector stores to search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                          "meta": []
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "Ranking options for search.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default-2024-11-15",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Compound Filter",
                              "type": "object",
                              "description": "Combine multiple filters using `and` or `or`.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/CompoundFilter",
                                "canonical": "objects/CompoundFilter",
                                "label": "CompoundFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Type of operation: `and` or `or`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "and",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "or",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "filters",
                                  "type": "$$array",
                                  "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Comparison Filter",
                                        "type": "object",
                                        "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ComparisonFilter",
                                          "canonical": "objects/ComparisonFilter",
                                          "label": "ComparisonFilter"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "eq"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "eq",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "ne",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "key",
                                            "type": "string",
                                            "description": "The key to compare against the value.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "$$xor",
                                            "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                            "properties": [
                                              {
                                                "name": "value",
                                                "type": "string",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "number",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "boolean",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "filters",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function",
                      "type": "object",
                      "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionTool",
                        "canonical": "objects/FunctionTool",
                        "label": "FunctionTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool. Always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "function"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "description",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                              "meta": []
                            },
                            {
                              "name": "description",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "A JSON schema object describing the parameters of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enforce strict parameter validation. Default `true`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "strict",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Web search preview",
                      "type": "object",
                      "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchPreviewTool",
                        "canonical": "objects/WebSearchPreviewTool",
                        "label": "WebSearchPreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "web_search_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "web_search_preview_2025_03_11",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "user_location",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "user_location",
                              "type": "object",
                              "description": "The user's location.",
                              "meta": [],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of location approximation. Always `approximate`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "approximate"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "approximate"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "approximate",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "country",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "country",
                                      "type": "string",
                                      "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "country",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "region",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "region",
                                      "type": "string",
                                      "description": "Free text input for the region of the user, e.g. `California`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "region",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "city",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "city",
                                      "type": "string",
                                      "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "city",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "timezone",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "timezone",
                                      "type": "string",
                                      "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "timezone",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "user_location",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "search_context_size",
                          "type": "$$enum",
                          "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "medium",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer use preview",
                      "type": "object",
                      "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerUsePreviewTool",
                        "canonical": "objects/ComputerUsePreviewTool",
                        "label": "ComputerUsePreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer use tool. Always `computer_use_preview`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_use_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_use_preview"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_use_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "environment",
                          "type": "$$enum",
                          "description": "The type of computer environment to control.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "windows",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "mac",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "linux",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ubuntu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "browser",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "display_width",
                          "type": "integer",
                          "description": "The width of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "display_height",
                          "type": "integer",
                          "description": "The height of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/Tool",
                    "canonical": "objects/Tool",
                    "label": "Tool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Tool",
                  "canonical": "objects/Tool",
                  "label": "Tool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
                "properties": [
                  {
                    "name": "Tool choice mode",
                    "type": "$$enum",
                    "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceOptions",
                      "canonical": "objects/ToolChoiceOptions",
                      "label": "ToolChoiceOptions"
                    }
                  },
                  {
                    "name": "Hosted tool",
                    "type": "object",
                    "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceTypes",
                      "canonical": "objects/ToolChoiceTypes",
                      "label": "ToolChoiceTypes"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "computer_use_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview_2025_03_11",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Function tool",
                    "type": "object",
                    "description": "Use this option to force the model to call a specific function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceFunction",
                      "canonical": "objects/ToolChoiceFunction",
                      "label": "ToolChoiceFunction"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "For function calling, the type is always `function`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "truncation",
                "type": "$$enum",
                "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "disabled"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "disabled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input",
                "type": "$$xor",
                "description": "Text, image, or file inputs to the model, used to generate a response.\n\nLearn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Image inputs](/docs/guides/images)\n- [File inputs](/docs/guides/pdf-files)\n- [Conversation state](/docs/guides/conversation-state)\n- [Function calling](/docs/guides/function-calling)\n",
                "properties": [
                  {
                    "name": "Text input",
                    "type": "string",
                    "description": "A text input to the model, equivalent to a text input with the \n`user` role.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "Input item list",
                    "type": "$$array",
                    "description": "A list of one or many input items to the model, containing \ndifferent content types.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "Input message",
                          "type": "object",
                          "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/EasyInputMessage",
                            "canonical": "objects/EasyInputMessage",
                            "label": "EasyInputMessage"
                          },
                          "properties": [
                            {
                              "name": "role",
                              "type": "$$enum",
                              "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "user",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "assistant",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "system",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "developer",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "content",
                              "type": "$$xor",
                              "description": "Text, image, or audio input to the model, used to generate a response.\nCan also contain previous assistant responses.\n",
                              "properties": [
                                {
                                  "name": "Text input",
                                  "type": "string",
                                  "description": "A text input to the model.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "Input item content list",
                                  "type": "$$array",
                                  "description": "A list of one or many input items to the model, containing different content \ntypes.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/InputMessageContentList",
                                    "canonical": "objects/InputMessageContentList",
                                    "label": "InputMessageContentList"
                                  },
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Input text",
                                        "type": "object",
                                        "description": "A text input to the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputTextContent",
                                          "canonical": "objects/InputTextContent",
                                          "label": "InputTextContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_text`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_text"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text input to the model.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Input image",
                                        "type": "object",
                                        "description": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputImageContent",
                                          "canonical": "objects/InputImageContent",
                                          "label": "InputImageContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_image`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_image"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_image"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_image",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "image_url",
                                            "type": "$$union",
                                            "description": "",
                                            "properties": [
                                              {
                                                "name": "image_url",
                                                "type": "string",
                                                "description": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.",
                                                "meta": []
                                              },
                                              {
                                                "name": "image_url",
                                                "type": "null",
                                                "description": "",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "file_id",
                                            "type": "$$union",
                                            "description": "",
                                            "properties": [
                                              {
                                                "name": "file_id",
                                                "type": "string",
                                                "description": "The ID of the file to be sent to the model.",
                                                "meta": []
                                              },
                                              {
                                                "name": "file_id",
                                                "type": "null",
                                                "description": "",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "detail",
                                            "type": "$$enum",
                                            "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "low",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "high",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "auto",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Input file",
                                        "type": "object",
                                        "description": "A file input to the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputFileContent",
                                          "canonical": "objects/InputFileContent",
                                          "label": "InputFileContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_file`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_file"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_file"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_file",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "file_id",
                                            "type": "$$union",
                                            "description": "",
                                            "properties": [
                                              {
                                                "name": "file_id",
                                                "type": "string",
                                                "description": "The ID of the file to be sent to the model.",
                                                "meta": []
                                              },
                                              {
                                                "name": "file_id",
                                                "type": "null",
                                                "description": "",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "filename",
                                            "type": "string",
                                            "description": "The name of the file to be sent to the model.",
                                            "meta": []
                                          },
                                          {
                                            "name": "file_data",
                                            "type": "string",
                                            "description": "The content of the file to be sent to the model.\n",
                                            "meta": []
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/InputContent",
                                      "canonical": "objects/InputContent",
                                      "label": "InputContent"
                                    }
                                  }
                                }
                              ],
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the message input. Always `message`.\n",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "message"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "message",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        },
                        {
                          "name": "Item",
                          "type": "$$xor",
                          "description": "An item representing part of the context for the response to be \ngenerated by the model. Can contain text, images, and audio inputs,\nas well as previous assistant responses and tool call outputs.\n",
                          "properties": [
                            {
                              "name": "Input message",
                              "type": "object",
                              "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/InputMessage",
                                "canonical": "objects/InputMessage",
                                "label": "InputMessage"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the message input. Always set to `message`.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "message"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "message",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "role",
                                  "type": "$$enum",
                                  "description": "The role of the message input. One of `user`, `system`, or `developer`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "user",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "system",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "developer",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "incomplete",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "content",
                                  "type": "$$array",
                                  "description": "A list of one or many input items to the model, containing different content \ntypes.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/InputMessageContentList",
                                    "canonical": "objects/InputMessageContentList",
                                    "label": "InputMessageContentList"
                                  },
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Input text",
                                        "type": "object",
                                        "description": "A text input to the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputTextContent",
                                          "canonical": "objects/InputTextContent",
                                          "label": "InputTextContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_text`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_text"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text input to the model.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Input image",
                                        "type": "object",
                                        "description": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputImageContent",
                                          "canonical": "objects/InputImageContent",
                                          "label": "InputImageContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_image`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_image"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_image"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_image",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "image_url",
                                            "type": "$$union",
                                            "description": "",
                                            "properties": [
                                              {
                                                "name": "image_url",
                                                "type": "string",
                                                "description": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.",
                                                "meta": []
                                              },
                                              {
                                                "name": "image_url",
                                                "type": "null",
                                                "description": "",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "file_id",
                                            "type": "$$union",
                                            "description": "",
                                            "properties": [
                                              {
                                                "name": "file_id",
                                                "type": "string",
                                                "description": "The ID of the file to be sent to the model.",
                                                "meta": []
                                              },
                                              {
                                                "name": "file_id",
                                                "type": "null",
                                                "description": "",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "detail",
                                            "type": "$$enum",
                                            "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "low",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "high",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "auto",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Input file",
                                        "type": "object",
                                        "description": "A file input to the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputFileContent",
                                          "canonical": "objects/InputFileContent",
                                          "label": "InputFileContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_file`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_file"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_file"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_file",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "file_id",
                                            "type": "$$union",
                                            "description": "",
                                            "properties": [
                                              {
                                                "name": "file_id",
                                                "type": "string",
                                                "description": "The ID of the file to be sent to the model.",
                                                "meta": []
                                              },
                                              {
                                                "name": "file_id",
                                                "type": "null",
                                                "description": "",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "filename",
                                            "type": "string",
                                            "description": "The name of the file to be sent to the model.",
                                            "meta": []
                                          },
                                          {
                                            "name": "file_data",
                                            "type": "string",
                                            "description": "The content of the file to be sent to the model.\n",
                                            "meta": []
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/InputContent",
                                      "canonical": "objects/InputContent",
                                      "label": "InputContent"
                                    }
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Output message",
                              "type": "object",
                              "description": "An output message from the model.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/OutputMessage",
                                "canonical": "objects/OutputMessage",
                                "label": "OutputMessage"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The unique ID of the output message.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the output message. Always `message`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "message"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "message",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "role",
                                  "type": "$$enum",
                                  "description": "The role of the output message. Always `assistant`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "assistant"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "assistant",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "content",
                                  "type": "$$array",
                                  "description": "The content of the output message.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Output text",
                                        "type": "object",
                                        "description": "A text output from the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/OutputTextContent",
                                          "canonical": "objects/OutputTextContent",
                                          "label": "OutputTextContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the output text. Always `output_text`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "output_text"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "output_text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "output_text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text output from the model.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "annotations",
                                            "type": "$$array",
                                            "description": "The annotations of the text output.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ],
                                            "properties": [],
                                            "ofProperty": {
                                              "name": "",
                                              "type": "$$xor",
                                              "properties": [
                                                {
                                                  "name": "File citation",
                                                  "type": "object",
                                                  "description": "A citation to a file.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/FileCitationBody",
                                                    "canonical": "objects/FileCitationBody",
                                                    "label": "FileCitationBody"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "type",
                                                      "type": "$$enum",
                                                      "description": "The type of the file citation. Always `file_citation`.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "defaults",
                                                          "value": "file_citation"
                                                        },
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        },
                                                        {
                                                          "name": "const",
                                                          "value": "file_citation"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "file_citation",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      }
                                                    },
                                                    {
                                                      "name": "file_id",
                                                      "type": "string",
                                                      "description": "The ID of the file.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "name": "index",
                                                      "type": "integer",
                                                      "description": "The index of the file in the list of files.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "URL citation",
                                                  "type": "object",
                                                  "description": "A citation for a web resource used to generate a model response.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/UrlCitationBody",
                                                    "canonical": "objects/UrlCitationBody",
                                                    "label": "UrlCitationBody"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "type",
                                                      "type": "$$enum",
                                                      "description": "The type of the URL citation. Always `url_citation`.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "defaults",
                                                          "value": "url_citation"
                                                        },
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        },
                                                        {
                                                          "name": "const",
                                                          "value": "url_citation"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "url_citation",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      }
                                                    },
                                                    {
                                                      "name": "url",
                                                      "type": "string",
                                                      "description": "The URL of the web resource.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "name": "start_index",
                                                      "type": "integer",
                                                      "description": "The index of the first character of the URL citation in the message.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "name": "end_index",
                                                      "type": "integer",
                                                      "description": "The index of the last character of the URL citation in the message.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "name": "title",
                                                      "type": "string",
                                                      "description": "The title of the web resource.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "File path",
                                                  "type": "object",
                                                  "description": "A path to a file.\n",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/FilePath",
                                                    "canonical": "objects/FilePath",
                                                    "label": "FilePath"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "type",
                                                      "type": "$$enum",
                                                      "description": "The type of the file path. Always `file_path`.\n",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        },
                                                        {
                                                          "name": "const",
                                                          "value": "file_path"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "file_path",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      }
                                                    },
                                                    {
                                                      "name": "file_id",
                                                      "type": "string",
                                                      "description": "The ID of the file.\n",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "name": "index",
                                                      "type": "integer",
                                                      "description": "The index of the file in the list of files.\n",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ],
                                              "description": "",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "symbolDef": {
                                                "id": "#/components/schemas/Annotation",
                                                "canonical": "objects/Annotation",
                                                "label": "Annotation"
                                              }
                                            },
                                            "symbolDef": {
                                              "id": "#/components/schemas/Annotation",
                                              "canonical": "objects/Annotation",
                                              "label": "Annotation"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Refusal",
                                        "type": "object",
                                        "description": "A refusal from the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/RefusalContent",
                                          "canonical": "objects/RefusalContent",
                                          "label": "RefusalContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the refusal. Always `refusal`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "refusal"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "refusal"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "refusal",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "refusal",
                                            "type": "string",
                                            "description": "The refusal explanationfrom the model.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/OutputContent",
                                      "canonical": "objects/OutputContent",
                                      "label": "OutputContent"
                                    }
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/OutputContent",
                                    "canonical": "objects/OutputContent",
                                    "label": "OutputContent"
                                  }
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "incomplete",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "File search tool call",
                              "type": "object",
                              "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchToolCall",
                                "canonical": "objects/FileSearchToolCall",
                                "label": "FileSearchToolCall"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The unique ID of the file search tool call.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the file search tool call. Always `file_search_call`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "file_search_call"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "file_search_call",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "searching",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "incomplete",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "failed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "queries",
                                  "type": "$$array",
                                  "description": "The queries used to search for files.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "string",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "name": "results",
                                  "type": "$$array",
                                  "description": "The results of the file search tool call.\n",
                                  "meta": [
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The unique ID of the file.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text that was retrieved from the file.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "filename",
                                        "type": "string",
                                        "description": "The name of the file.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "attributes",
                                        "type": "object",
                                        "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                                        "meta": [
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/VectorStoreFileAttributes",
                                          "canonical": "objects/VectorStoreFileAttributes",
                                          "label": "VectorStoreFileAttributes"
                                        }
                                      },
                                      {
                                        "name": "score",
                                        "type": "number",
                                        "description": "The relevance score of the file - a value between 0 and 1.\n",
                                        "meta": []
                                      }
                                    ],
                                    "description": "",
                                    "meta": []
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Computer tool call",
                              "type": "object",
                              "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/ComputerToolCall",
                                "canonical": "objects/ComputerToolCall",
                                "label": "ComputerToolCall"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the computer call. Always `computer_call`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "computer_call"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "computer_call"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "computer_call",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The unique ID of the computer call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "call_id",
                                  "type": "string",
                                  "description": "An identifier used when responding to the tool call with output.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "action",
                                  "type": "$$xor",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "Click",
                                      "type": "object",
                                      "description": "A click action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Click",
                                        "canonical": "objects/Click",
                                        "label": "Click"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "click"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "click"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "click",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "button",
                                          "type": "$$enum",
                                          "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "left",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "right",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "wheel",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "back",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "forward",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "x",
                                          "type": "integer",
                                          "description": "The x-coordinate where the click occurred.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "y",
                                          "type": "integer",
                                          "description": "The y-coordinate where the click occurred.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "DoubleClick",
                                      "type": "object",
                                      "description": "A double click action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/DoubleClick",
                                        "canonical": "objects/DoubleClick",
                                        "label": "DoubleClick"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "double_click"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "double_click"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "double_click",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "x",
                                          "type": "integer",
                                          "description": "The x-coordinate where the double click occurred.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "y",
                                          "type": "integer",
                                          "description": "The y-coordinate where the double click occurred.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Drag",
                                      "type": "object",
                                      "description": "A drag action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Drag",
                                        "canonical": "objects/Drag",
                                        "label": "Drag"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "drag"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "drag"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "drag",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "path",
                                          "type": "$$array",
                                          "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "ofProperty": {
                                            "name": "",
                                            "type": "object",
                                            "properties": [
                                              {
                                                "name": "x",
                                                "type": "integer",
                                                "description": "The x-coordinate.\n",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "y",
                                                "type": "integer",
                                                "description": "The y-coordinate.\n",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "description": "A series of x/y coordinate pairs in the drag path.\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "name": "KeyPress",
                                      "type": "object",
                                      "description": "A collection of keypresses the model would like to perform.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/KeyPress",
                                        "canonical": "objects/KeyPress",
                                        "label": "KeyPress"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "keypress"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "keypress"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "keypress",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "keys",
                                          "type": "$$array",
                                          "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "ofProperty": {
                                            "name": "",
                                            "type": "string",
                                            "properties": [],
                                            "description": "One of the keys the model is requesting to be pressed.\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Move",
                                      "type": "object",
                                      "description": "A mouse move action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Move",
                                        "canonical": "objects/Move",
                                        "label": "Move"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "move"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "move"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "move",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "x",
                                          "type": "integer",
                                          "description": "The x-coordinate to move to.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "y",
                                          "type": "integer",
                                          "description": "The y-coordinate to move to.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Screenshot",
                                      "type": "object",
                                      "description": "A screenshot action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Screenshot",
                                        "canonical": "objects/Screenshot",
                                        "label": "Screenshot"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "screenshot"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "screenshot"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "screenshot",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Scroll",
                                      "type": "object",
                                      "description": "A scroll action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Scroll",
                                        "canonical": "objects/Scroll",
                                        "label": "Scroll"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "scroll"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "scroll"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "scroll",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "x",
                                          "type": "integer",
                                          "description": "The x-coordinate where the scroll occurred.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "y",
                                          "type": "integer",
                                          "description": "The y-coordinate where the scroll occurred.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "scroll_x",
                                          "type": "integer",
                                          "description": "The horizontal scroll distance.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "scroll_y",
                                          "type": "integer",
                                          "description": "The vertical scroll distance.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Type",
                                      "type": "object",
                                      "description": "An action to type in text.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Type",
                                        "canonical": "objects/Type",
                                        "label": "Type"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "type"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "type"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "text",
                                          "type": "string",
                                          "description": "The text to type.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Wait",
                                      "type": "object",
                                      "description": "A wait action.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Wait",
                                        "canonical": "objects/Wait",
                                        "label": "Wait"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "wait"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "wait"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "wait",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/ComputerAction",
                                    "canonical": "objects/ComputerAction",
                                    "label": "ComputerAction"
                                  }
                                },
                                {
                                  "name": "pending_safety_checks",
                                  "type": "$$array",
                                  "description": "The pending safety checks for the computer call.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "id",
                                        "type": "string",
                                        "description": "The ID of the pending safety check.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "code",
                                        "type": "string",
                                        "description": "The type of the pending safety check.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "message",
                                        "type": "string",
                                        "description": "Details about the pending safety check.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "A pending safety check for the computer call.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                                      "canonical": "objects/ComputerToolCallSafetyCheck",
                                      "label": "ComputerToolCallSafetyCheck"
                                    }
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                                    "canonical": "objects/ComputerToolCallSafetyCheck",
                                    "label": "ComputerToolCallSafetyCheck"
                                  }
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "incomplete",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Computer tool call output",
                              "type": "object",
                              "description": "The output of a computer tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/ComputerCallOutputItemParam",
                                "canonical": "objects/ComputerCallOutputItemParam",
                                "label": "ComputerCallOutputItemParam"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "id",
                                      "type": "string",
                                      "description": "The ID of the computer tool call output.",
                                      "meta": []
                                    },
                                    {
                                      "name": "id",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "call_id",
                                  "type": "string",
                                  "description": "The ID of the computer tool call that produced the output.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the computer tool call output. Always `computer_call_output`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "computer_call_output"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "computer_call_output"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "computer_call_output",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "output",
                                  "type": "object",
                                  "description": "A computer screenshot image used with the computer use tool.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/ComputerScreenshotImage",
                                    "canonical": "objects/ComputerScreenshotImage",
                                    "label": "ComputerScreenshotImage"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Specifies the event type. For a computer screenshot, this property is \nalways set to `computer_screenshot`.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "defaults",
                                          "value": "computer_screenshot"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "computer_screenshot"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "computer_screenshot",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_url",
                                      "type": "string",
                                      "description": "The URL of the screenshot image.",
                                      "meta": []
                                    },
                                    {
                                      "name": "file_id",
                                      "type": "string",
                                      "description": "The identifier of an uploaded file that contains the screenshot.",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "acknowledged_safety_checks",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "acknowledged_safety_checks",
                                      "type": "$$array",
                                      "description": "The safety checks reported by the API that have been acknowledged by the developer.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "",
                                          "type": "object",
                                          "description": "A pending safety check for the computer call.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/ComputerCallSafetyCheckParam",
                                            "canonical": "objects/ComputerCallSafetyCheckParam",
                                            "label": "ComputerCallSafetyCheckParam"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the pending safety check.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "code",
                                              "type": "$$union",
                                              "description": "",
                                              "properties": [
                                                {
                                                  "name": "code",
                                                  "type": "string",
                                                  "description": "The type of the pending safety check.",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "code",
                                                  "type": "null",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ]
                                            },
                                            {
                                              "name": "message",
                                              "type": "$$union",
                                              "description": "",
                                              "properties": [
                                                {
                                                  "name": "message",
                                                  "type": "string",
                                                  "description": "Details about the pending safety check.",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "message",
                                                  "type": "null",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/ComputerCallSafetyCheckParam",
                                        "canonical": "objects/ComputerCallSafetyCheckParam",
                                        "label": "ComputerCallSafetyCheckParam"
                                      }
                                    },
                                    {
                                      "name": "acknowledged_safety_checks",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "status",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "status",
                                      "type": "$$enum",
                                      "description": "The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.",
                                      "meta": [
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "in_progress",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "completed",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "incomplete",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "status",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Web search tool call",
                              "type": "object",
                              "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/WebSearchToolCall",
                                "canonical": "objects/WebSearchToolCall",
                                "label": "WebSearchToolCall"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The unique ID of the web search tool call.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the web search tool call. Always `web_search_call`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "web_search_call"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "web_search_call",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of the web search tool call.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "searching",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "failed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Function tool call",
                              "type": "object",
                              "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/FunctionToolCall",
                                "canonical": "objects/FunctionToolCall",
                                "label": "FunctionToolCall"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The unique ID of the function tool call.\n",
                                  "meta": []
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the function tool call. Always `function_call`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "function_call"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "function_call",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "call_id",
                                  "type": "string",
                                  "description": "The unique ID of the function tool call generated by the model.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "name",
                                  "type": "string",
                                  "description": "The name of the function to run.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "arguments",
                                  "type": "string",
                                  "description": "A JSON string of the arguments to pass to the function.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "incomplete",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Function tool call output",
                              "type": "object",
                              "description": "The output of a function tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/FunctionCallOutputItemParam",
                                "canonical": "objects/FunctionCallOutputItemParam",
                                "label": "FunctionCallOutputItemParam"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "id",
                                      "type": "string",
                                      "description": "The unique ID of the function tool call output. Populated when this item is returned via API.",
                                      "meta": []
                                    },
                                    {
                                      "name": "id",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "call_id",
                                  "type": "string",
                                  "description": "The unique ID of the function tool call generated by the model.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the function tool call output. Always `function_call_output`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "function_call_output"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "function_call_output"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "function_call_output",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "output",
                                  "type": "string",
                                  "description": "A JSON string of the output of the function tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "status",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "status",
                                      "type": "$$enum",
                                      "description": "The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.",
                                      "meta": [
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "in_progress",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "completed",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "incomplete",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "status",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Reasoning",
                              "type": "object",
                              "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/ReasoningItem",
                                "canonical": "objects/ReasoningItem",
                                "label": "ReasoningItem"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the object. Always `reasoning`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "reasoning"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "reasoning",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The unique identifier of the reasoning content.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "summary",
                                  "type": "$$array",
                                  "description": "Reasoning text contents.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the object. Always `summary_text`.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "summary_text"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "summary_text",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "name": "status",
                                  "type": "$$enum",
                                  "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "in_progress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "completed",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "incomplete",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "Item reference",
                          "type": "object",
                          "description": "An internal identifier for an item to reference.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ItemReferenceParam",
                            "canonical": "objects/ItemReferenceParam",
                            "label": "ItemReferenceParam"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$union",
                              "description": "",
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of item to reference. Always `item_reference`.",
                                  "meta": [
                                    {
                                      "name": "defaults",
                                      "value": "item_reference"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "item_reference"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "item_reference",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "type",
                                  "type": "null",
                                  "description": "",
                                  "meta": []
                                }
                              ]
                            },
                            {
                              "name": "id",
                              "type": "string",
                              "description": "The ID of the item to reference.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/InputItem",
                        "canonical": "objects/InputItem",
                        "label": "InputItem"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/InputItem",
                      "canonical": "objects/InputItem",
                      "label": "InputItem"
                    }
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "include",
                "type": "$$array",
                "description": "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n  the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "file_search_call.results",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "message.input_image.image_url",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "computer_call_output.output.image_url",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n  the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  },
                  "symbolDef": {
                    "id": "#/components/schemas/Includable",
                    "canonical": "objects/Includable",
                    "label": "Includable"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Includable",
                  "canonical": "objects/Includable",
                  "label": "Includable"
                }
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to allow the model to run tool calls in parallel.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": true
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "store",
                "type": "boolean",
                "description": "Whether to store the generated model response for later retrieval via\nAPI.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": true
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/responses-streaming)\nfor more information.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateResponse",
              "canonical": "objects/CreateResponse",
              "label": "CreateResponse"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "Returns a [Response](/docs/api-reference/responses/object) object.\n",
        "properties": []
      }
    ]
  },
  {
    "title": "Get a model response",
    "canonical": "responses/get",
    "description": "Retrieves a model response with the given ID.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/responses/{response_id}",
      "group": [
        "Responses",
        "Responses"
      ],
      "fullPath": "https://api.openai.com/v1/responses/{response_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses/resp_123 \\\n    -H \"Content-Type: application/json\" \\\n    -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\nconst client = new OpenAI();\n\nconst response = await client.responses.retrieve(\"resp_123\");\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.responses.retrieve(\"resp_123\")\nprint(response)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67cb71b351908190a308f3859487620d06981a8637e6bc44\",\n  \"object\": \"response\",\n  \"created_at\": 1741386163,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4o-2024-08-06\",\n  \"output\": [\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67cb71b3c2b0819084d481baaaf148f206981a8637e6bc44\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"Silent circuits hum,  \\nThoughts emerge in data streams—  \\nDigital dawn breaks.\",\n          \"annotations\": []\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 32,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 18,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 50\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "resp_677efb5139a88190b512bc3fef8e535d"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "include",
            "type": "$$array",
            "description": "Additional fields to include in the response. See the `include`\nparameter for Response creation above for more information.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "file_search_call.results",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "message.input_image.image_url",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "computer_call_output.output.image_url",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n  the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              },
              "symbolDef": {
                "id": "#/components/schemas/Includable",
                "canonical": "objects/Includable",
                "label": "Includable"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/Includable",
              "canonical": "objects/Includable",
              "label": "Includable"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "The [Response](/docs/api-reference/responses/object) object matching the\nspecified ID.\n",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete a model response",
    "canonical": "responses/delete",
    "description": "Deletes a model response with the given ID.\n",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/responses/{response_id}",
      "group": [
        "Responses",
        "Responses"
      ],
      "fullPath": "https://api.openai.com/v1/responses/{response_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/responses/resp_123 \\\n    -H \"Content-Type: application/json\" \\\n    -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\nconst client = new OpenAI();\n\nconst response = await client.responses.del(\"resp_123\");\nconsole.log(response);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.responses.del(\"resp_123\")\nprint(response)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_6786a1bec27481909a17d673315b29f6\",\n  \"object\": \"response\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "resp_677efb5139a88190b512bc3fef8e535d"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "A success message.\n",
        "properties": []
      }
    ]
  },
  {
    "title": "List input items",
    "canonical": "responses/input-items",
    "description": "Returns a list of input items for a given response.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/responses/{response_id}/input_items",
      "group": [
        "Responses",
        "Responses"
      ],
      "fullPath": "https://api.openai.com/v1/responses/{response_id}/input_items",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/responses/resp_abc123/input_items \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import OpenAI from \"openai\";\nconst client = new OpenAI();\n\nconst response = await client.responses.inputItems.list(\"resp_123\");\nconsole.log(response.data);\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.responses.input_items.list(\"resp_123\")\nprint(response.data)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"msg_abc123\",\n      \"type\": \"message\",\n      \"role\": \"user\",\n      \"content\": [\n        {\n          \"type\": \"input_text\",\n          \"text\": \"Tell me a three sentence bedtime story about a unicorn.\"\n        }\n      ]\n    }\n  ],\n  \"first_id\": \"msg_abc123\",\n  \"last_id\": \"msg_abc123\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response to retrieve input items for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between\n1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "The order to return the input items in. Default is `asc`.\n- `asc`: Return the input items in ascending order.\n- `desc`: Return the input items in descending order.\n",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "An item ID to list items after, used in pagination.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "An item ID to list items before, used in pagination.\n",
            "meta": []
          },
          {
            "name": "include",
            "type": "$$array",
            "description": "Additional fields to include in the response. See the `include`\nparameter for Response creation above for more information.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "file_search_call.results",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "message.input_image.image_url",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "computer_call_output.output.image_url",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n  the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              },
              "symbolDef": {
                "id": "#/components/schemas/Includable",
                "canonical": "objects/Includable",
                "label": "Includable"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/Includable",
              "canonical": "objects/Includable",
              "label": "Includable"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of input item objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "The response object",
    "description": "",
    "canonical": "responses/object",
    "definitions": [
      {
        "title": "Response",
        "properties": [
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          },
          {
            "name": "temperature",
            "type": "number",
            "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 1
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "example",
                "value": 1
              },
              {
                "name": "maximum",
                "value": 2
              },
              {
                "name": "minimum",
                "value": 0
              }
            ]
          },
          {
            "name": "top_p",
            "type": "number",
            "description": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 1
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "example",
                "value": 1
              },
              {
                "name": "maximum",
                "value": 1
              },
              {
                "name": "minimum",
                "value": 0
              }
            ]
          },
          {
            "name": "user",
            "type": "string",
            "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
            "meta": [
              {
                "name": "example",
                "value": "user-1234"
              }
            ]
          },
          {
            "name": "service_tier",
            "type": "$$enum",
            "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "auto"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "auto",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "default",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "flex",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            },
            "symbolDef": {
              "id": "#/components/schemas/ServiceTier",
              "canonical": "objects/ServiceTier",
              "label": "ServiceTier"
            }
          },
          {
            "name": "previous_response_id",
            "type": "string",
            "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "$$union",
            "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
            "properties": [
              {
                "name": "model",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "model",
                "type": "$$enum",
                "description": "",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "gpt-4.1",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4.1-mini",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4.1-nano",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4.1-2025-04-14",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4.1-mini-2025-04-14",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4.1-nano-2025-04-14",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o4-mini",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o4-mini-2025-04-16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o3",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o3-2025-04-16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o3-mini",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o3-mini-2025-01-31",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1-preview-2024-09-12",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1-mini",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1-mini-2024-09-12",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-2024-11-20",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-2024-08-06",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-2024-05-13",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-audio-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-audio-preview-2024-10-01",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-audio-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-audio-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-audio-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-search-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-search-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-search-preview-2025-03-11",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-search-preview-2025-03-11",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "chatgpt-4o-latest",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-2024-07-18",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-turbo",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-turbo-2024-04-09",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-0125-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-turbo-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-1106-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-vision-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-0314",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-0613",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-32k",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-32k-0314",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4-32k-0613",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo-16k",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo-0301",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo-0613",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo-1106",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo-0125",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-3.5-turbo-16k-0613",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "ResponsesOnlyModel",
                "type": "$$enum",
                "description": "",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "o1-pro",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "o1-pro-2025-03-19",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "computer-use-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "computer-use-preview-2025-03-11",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ]
          },
          {
            "name": "reasoning",
            "type": "object",
            "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "effort",
                "type": "$$enum",
                "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "medium"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningEffort",
                  "canonical": "objects/ReasoningEffort",
                  "label": "ReasoningEffort"
                }
              },
              {
                "name": "summary",
                "type": "$$enum",
                "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "concise",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "detailed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "generate_summary",
                "type": "$$enum",
                "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                "meta": [
                  {
                    "name": "deprecated",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "concise",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "detailed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ]
          },
          {
            "name": "max_output_tokens",
            "type": "integer",
            "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "instructions",
            "type": "string",
            "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "text",
            "type": "object",
            "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
            "meta": [],
            "properties": [
              {
                "name": "format",
                "type": "$$xor",
                "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                "properties": [
                  {
                    "name": "Text",
                    "type": "object",
                    "description": "Default response format. Used to generate text responses.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatText",
                      "canonical": "objects/ResponseFormatText",
                      "label": "ResponseFormatText"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `text`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON schema",
                    "type": "object",
                    "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatJsonSchema",
                      "canonical": "objects/TextResponseFormatJsonSchema",
                      "label": "TextResponseFormatJsonSchema"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_schema`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_schema"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_schema",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "description",
                        "type": "string",
                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                        "meta": []
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "schema",
                        "type": "object",
                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                          "label": "ResponseFormatJsonSchemaSchema"
                        }
                      },
                      {
                        "name": "strict",
                        "type": "boolean",
                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": false
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "JSON object",
                    "type": "object",
                    "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonObject",
                      "canonical": "objects/ResponseFormatJsonObject",
                      "label": "ResponseFormatJsonObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_object`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_object"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_object",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/TextResponseFormatConfiguration",
                  "canonical": "objects/TextResponseFormatConfiguration",
                  "label": "TextResponseFormatConfiguration"
                }
              }
            ]
          },
          {
            "name": "tools",
            "type": "$$array",
            "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "File search",
                  "type": "object",
                  "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/FileSearchTool",
                    "canonical": "objects/FileSearchTool",
                    "label": "FileSearchTool"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the file search tool. Always `file_search`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "file_search"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "file_search"
                        }
                      ],
                      "properties": [
                        {
                          "name": "file_search",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "vector_store_ids",
                      "type": "$$array",
                      "description": "The IDs of the vector stores to search.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "string",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    },
                    {
                      "name": "max_num_results",
                      "type": "integer",
                      "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                      "meta": []
                    },
                    {
                      "name": "ranking_options",
                      "type": "object",
                      "description": "Ranking options for search.",
                      "meta": [],
                      "properties": [
                        {
                          "name": "ranker",
                          "type": "$$enum",
                          "description": "The ranker to use for the file search.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "auto",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "default-2024-11-15",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "score_threshold",
                          "type": "number",
                          "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "filters",
                      "type": "$$union",
                      "description": "",
                      "properties": [
                        {
                          "name": "Comparison Filter",
                          "type": "object",
                          "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/ComparisonFilter",
                            "canonical": "objects/ComparisonFilter",
                            "label": "ComparisonFilter"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "eq"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "eq",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "ne",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "gt",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "gte",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "lt",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "lte",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "key",
                              "type": "string",
                              "description": "The key to compare against the value.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "value",
                              "type": "$$xor",
                              "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                              "properties": [
                                {
                                  "name": "value",
                                  "type": "string",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "number",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "boolean",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ],
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Compound Filter",
                          "type": "object",
                          "description": "Combine multiple filters using `and` or `or`.",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/CompoundFilter",
                            "canonical": "objects/CompoundFilter",
                            "label": "CompoundFilter"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Type of operation: `and` or `or`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "and",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "or",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "filters",
                              "type": "$$array",
                              "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Comparison Filter",
                                    "type": "object",
                                    "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ComparisonFilter",
                                      "canonical": "objects/ComparisonFilter",
                                      "label": "ComparisonFilter"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "defaults",
                                            "value": "eq"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "eq",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "ne",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "gt",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "gte",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "lt",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "lte",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "key",
                                        "type": "string",
                                        "description": "The key to compare against the value.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "value",
                                        "type": "$$xor",
                                        "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                        "properties": [
                                          {
                                            "name": "value",
                                            "type": "string",
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "number",
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "boolean",
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ],
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "null",
                          "description": "",
                          "meta": []
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Function",
                  "type": "object",
                  "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/FunctionTool",
                    "canonical": "objects/FunctionTool",
                    "label": "FunctionTool"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the function tool. Always `function`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "function"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to call.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "description",
                      "type": "$$union",
                      "description": "",
                      "properties": [
                        {
                          "name": "description",
                          "type": "string",
                          "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                          "meta": []
                        },
                        {
                          "name": "description",
                          "type": "null",
                          "description": "",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "parameters",
                      "type": "$$union",
                      "description": "",
                      "properties": [
                        {
                          "name": "parameters",
                          "type": "object",
                          "description": "A JSON schema object describing the parameters of the function.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "null",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "strict",
                      "type": "$$union",
                      "description": "",
                      "properties": [
                        {
                          "name": "strict",
                          "type": "boolean",
                          "description": "Whether to enforce strict parameter validation. Default `true`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "null",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Web search preview",
                  "type": "object",
                  "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/WebSearchPreviewTool",
                    "canonical": "objects/WebSearchPreviewTool",
                    "label": "WebSearchPreviewTool"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "web_search_preview"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "web_search_preview",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "web_search_preview_2025_03_11",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "user_location",
                      "type": "$$union",
                      "description": "",
                      "properties": [
                        {
                          "name": "user_location",
                          "type": "object",
                          "description": "The user's location.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of location approximation. Always `approximate`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "approximate"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "approximate"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "approximate",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "country",
                              "type": "$$union",
                              "description": "",
                              "properties": [
                                {
                                  "name": "country",
                                  "type": "string",
                                  "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                  "meta": []
                                },
                                {
                                  "name": "country",
                                  "type": "null",
                                  "description": "",
                                  "meta": []
                                }
                              ]
                            },
                            {
                              "name": "region",
                              "type": "$$union",
                              "description": "",
                              "properties": [
                                {
                                  "name": "region",
                                  "type": "string",
                                  "description": "Free text input for the region of the user, e.g. `California`.",
                                  "meta": []
                                },
                                {
                                  "name": "region",
                                  "type": "null",
                                  "description": "",
                                  "meta": []
                                }
                              ]
                            },
                            {
                              "name": "city",
                              "type": "$$union",
                              "description": "",
                              "properties": [
                                {
                                  "name": "city",
                                  "type": "string",
                                  "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                  "meta": []
                                },
                                {
                                  "name": "city",
                                  "type": "null",
                                  "description": "",
                                  "meta": []
                                }
                              ]
                            },
                            {
                              "name": "timezone",
                              "type": "$$union",
                              "description": "",
                              "properties": [
                                {
                                  "name": "timezone",
                                  "type": "string",
                                  "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                  "meta": []
                                },
                                {
                                  "name": "timezone",
                                  "type": "null",
                                  "description": "",
                                  "meta": []
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "user_location",
                          "type": "null",
                          "description": "",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "search_context_size",
                      "type": "$$enum",
                      "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "low",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "medium",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "high",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "Computer use preview",
                  "type": "object",
                  "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ComputerUsePreviewTool",
                    "canonical": "objects/ComputerUsePreviewTool",
                    "label": "ComputerUsePreviewTool"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the computer use tool. Always `computer_use_preview`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "computer_use_preview"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "computer_use_preview"
                        }
                      ],
                      "properties": [
                        {
                          "name": "computer_use_preview",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "environment",
                      "type": "$$enum",
                      "description": "The type of computer environment to control.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "windows",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "mac",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "linux",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "ubuntu",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "browser",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "display_width",
                      "type": "integer",
                      "description": "The width of the computer display.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "display_height",
                      "type": "integer",
                      "description": "The height of the computer display.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/Tool",
                "canonical": "objects/Tool",
                "label": "Tool"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/Tool",
              "canonical": "objects/Tool",
              "label": "Tool"
            }
          },
          {
            "name": "tool_choice",
            "type": "$$xor",
            "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
            "properties": [
              {
                "name": "Tool choice mode",
                "type": "$$enum",
                "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "none",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "required",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ToolChoiceOptions",
                  "canonical": "objects/ToolChoiceOptions",
                  "label": "ToolChoiceOptions"
                }
              },
              {
                "name": "Hosted tool",
                "type": "object",
                "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ToolChoiceTypes",
                  "canonical": "objects/ToolChoiceTypes",
                  "label": "ToolChoiceTypes"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "file_search",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "web_search_preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer_use_preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "web_search_preview_2025_03_11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Function tool",
                "type": "object",
                "description": "Use this option to force the model to call a specific function.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ToolChoiceFunction",
                  "canonical": "objects/ToolChoiceFunction",
                  "label": "ToolChoiceFunction"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "For function calling, the type is always `function`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "function"
                      }
                    ],
                    "properties": [
                      {
                        "name": "function",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The name of the function to call.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": []
          },
          {
            "name": "truncation",
            "type": "$$enum",
            "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "disabled"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "auto",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "disabled",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "Unique identifier for this Response.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type of this resource - always set to `response`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response"
              }
            ],
            "properties": [
              {
                "name": "response",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, or `incomplete`.\n",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "incomplete",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "number",
            "description": "Unix timestamp (in seconds) of when this Response was created.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "error",
            "type": "object",
            "description": "An error object returned when the model fails to generate a Response.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ResponseError",
              "canonical": "objects/ResponseError",
              "label": "ResponseError"
            },
            "properties": [
              {
                "name": "code",
                "type": "$$enum",
                "description": "The error code for the response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "server_error",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "rate_limit_exceeded",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_prompt",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "vector_store_timeout",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_image",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_image_format",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_base64_image",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_image_url",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "image_too_large",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "image_too_small",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "image_parse_error",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "image_content_policy_violation",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_image_mode",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "image_file_too_large",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "unsupported_image_media_type",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "empty_image_file",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed_to_download_image",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "image_file_not_found",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ResponseErrorCode",
                  "canonical": "objects/ResponseErrorCode",
                  "label": "ResponseErrorCode"
                }
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable description of the error.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "incomplete_details",
            "type": "object",
            "description": "Details about why the response is incomplete.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "reason",
                "type": "$$enum",
                "description": "The reason why the response is incomplete.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "max_output_tokens",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "content_filter",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ]
          },
          {
            "name": "output",
            "type": "$$array",
            "description": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and \n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$union",
              "properties": [
                {
                  "name": "Output message",
                  "type": "object",
                  "description": "An output message from the model.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputMessage",
                    "canonical": "objects/OutputMessage",
                    "label": "OutputMessage"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the output message.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the output message. Always `message`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "message"
                        }
                      ],
                      "properties": [
                        {
                          "name": "message",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the output message. Always `assistant`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "assistant"
                        }
                      ],
                      "properties": [
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "The content of the output message.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$xor",
                        "properties": [
                          {
                            "name": "Output text",
                            "type": "object",
                            "description": "A text output from the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputTextContent",
                              "canonical": "objects/OutputTextContent",
                              "label": "OutputTextContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the output text. Always `output_text`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "output_text"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "output_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "output_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "annotations",
                                "type": "$$array",
                                "description": "The annotations of the text output.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "$$xor",
                                  "properties": [
                                    {
                                      "name": "File citation",
                                      "type": "object",
                                      "description": "A citation to a file.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FileCitationBody",
                                        "canonical": "objects/FileCitationBody",
                                        "label": "FileCitationBody"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the file citation. Always `file_citation`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "file_citation"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "file_citation"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "file_citation",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The ID of the file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the file in the list of files.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "URL citation",
                                      "type": "object",
                                      "description": "A citation for a web resource used to generate a model response.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/UrlCitationBody",
                                        "canonical": "objects/UrlCitationBody",
                                        "label": "UrlCitationBody"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the URL citation. Always `url_citation`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "url_citation"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "url_citation"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "url_citation",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "url",
                                          "type": "string",
                                          "description": "The URL of the web resource.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "start_index",
                                          "type": "integer",
                                          "description": "The index of the first character of the URL citation in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "end_index",
                                          "type": "integer",
                                          "description": "The index of the last character of the URL citation in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "title",
                                          "type": "string",
                                          "description": "The title of the web resource.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "File path",
                                      "type": "object",
                                      "description": "A path to a file.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FilePath",
                                        "canonical": "objects/FilePath",
                                        "label": "FilePath"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the file path. Always `file_path`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "file_path"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "file_path",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The ID of the file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the file in the list of files.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/Annotation",
                                    "canonical": "objects/Annotation",
                                    "label": "Annotation"
                                  }
                                },
                                "symbolDef": {
                                  "id": "#/components/schemas/Annotation",
                                  "canonical": "objects/Annotation",
                                  "label": "Annotation"
                                }
                              }
                            ]
                          },
                          {
                            "name": "Refusal",
                            "type": "object",
                            "description": "A refusal from the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RefusalContent",
                              "canonical": "objects/RefusalContent",
                              "label": "RefusalContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the refusal. Always `refusal`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "refusal"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "refusal"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "refusal",
                                "type": "string",
                                "description": "The refusal explanationfrom the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/OutputContent",
                          "canonical": "objects/OutputContent",
                          "label": "OutputContent"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/OutputContent",
                        "canonical": "objects/OutputContent",
                        "label": "OutputContent"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "File search tool call",
                  "type": "object",
                  "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/FileSearchToolCall",
                    "canonical": "objects/FileSearchToolCall",
                    "label": "FileSearchToolCall"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the file search tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the file search tool call. Always `file_search_call`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "file_search_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "file_search_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "searching",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "failed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "queries",
                      "type": "$$array",
                      "description": "The queries used to search for files.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "string",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    },
                    {
                      "name": "results",
                      "type": "$$array",
                      "description": "The results of the file search tool call.\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "file_id",
                            "type": "string",
                            "description": "The unique ID of the file.\n",
                            "meta": []
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text that was retrieved from the file.\n",
                            "meta": []
                          },
                          {
                            "name": "filename",
                            "type": "string",
                            "description": "The name of the file.\n",
                            "meta": []
                          },
                          {
                            "name": "attributes",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/VectorStoreFileAttributes",
                              "canonical": "objects/VectorStoreFileAttributes",
                              "label": "VectorStoreFileAttributes"
                            }
                          },
                          {
                            "name": "score",
                            "type": "number",
                            "description": "The relevance score of the file - a value between 0 and 1.\n",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    }
                  ]
                },
                {
                  "name": "Function tool call",
                  "type": "object",
                  "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/FunctionToolCall",
                    "canonical": "objects/FunctionToolCall",
                    "label": "FunctionToolCall"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the function tool call.\n",
                      "meta": []
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the function tool call. Always `function_call`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The unique ID of the function tool call generated by the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to run.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "arguments",
                      "type": "string",
                      "description": "A JSON string of the arguments to pass to the function.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "Web search tool call",
                  "type": "object",
                  "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/WebSearchToolCall",
                    "canonical": "objects/WebSearchToolCall",
                    "label": "WebSearchToolCall"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the web search tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the web search tool call. Always `web_search_call`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "web_search_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "web_search_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the web search tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "searching",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "failed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "Computer tool call",
                  "type": "object",
                  "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ComputerToolCall",
                    "canonical": "objects/ComputerToolCall",
                    "label": "ComputerToolCall"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the computer call. Always `computer_call`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "computer_call"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "computer_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "computer_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the computer call.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "An identifier used when responding to the tool call with output.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "action",
                      "type": "$$xor",
                      "description": "",
                      "properties": [
                        {
                          "name": "Click",
                          "type": "object",
                          "description": "A click action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Click",
                            "canonical": "objects/Click",
                            "label": "Click"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "click"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "click"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "click",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "button",
                              "type": "$$enum",
                              "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "left",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "right",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "wheel",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "back",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "forward",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate where the click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate where the click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "DoubleClick",
                          "type": "object",
                          "description": "A double click action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/DoubleClick",
                            "canonical": "objects/DoubleClick",
                            "label": "DoubleClick"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "double_click"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "double_click"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "double_click",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate where the double click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate where the double click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Drag",
                          "type": "object",
                          "description": "A drag action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Drag",
                            "canonical": "objects/Drag",
                            "label": "Drag"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "drag"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "drag"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "drag",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "path",
                              "type": "$$array",
                              "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "object",
                                "properties": [
                                  {
                                    "name": "x",
                                    "type": "integer",
                                    "description": "The x-coordinate.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "y",
                                    "type": "integer",
                                    "description": "The y-coordinate.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ],
                                "description": "A series of x/y coordinate pairs in the drag path.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "name": "KeyPress",
                          "type": "object",
                          "description": "A collection of keypresses the model would like to perform.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/KeyPress",
                            "canonical": "objects/KeyPress",
                            "label": "KeyPress"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "keypress"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "keypress"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "keypress",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "keys",
                              "type": "$$array",
                              "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "string",
                                "properties": [],
                                "description": "One of the keys the model is requesting to be pressed.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "name": "Move",
                          "type": "object",
                          "description": "A mouse move action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Move",
                            "canonical": "objects/Move",
                            "label": "Move"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "move"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "move"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "move",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate to move to.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate to move to.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Screenshot",
                          "type": "object",
                          "description": "A screenshot action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Screenshot",
                            "canonical": "objects/Screenshot",
                            "label": "Screenshot"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "screenshot"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "screenshot"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "screenshot",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        },
                        {
                          "name": "Scroll",
                          "type": "object",
                          "description": "A scroll action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Scroll",
                            "canonical": "objects/Scroll",
                            "label": "Scroll"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "scroll"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "scroll"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "scroll",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate where the scroll occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate where the scroll occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "scroll_x",
                              "type": "integer",
                              "description": "The horizontal scroll distance.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "scroll_y",
                              "type": "integer",
                              "description": "The vertical scroll distance.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Type",
                          "type": "object",
                          "description": "An action to type in text.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Type",
                            "canonical": "objects/Type",
                            "label": "Type"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "type"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "type"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "text",
                              "type": "string",
                              "description": "The text to type.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Wait",
                          "type": "object",
                          "description": "A wait action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Wait",
                            "canonical": "objects/Wait",
                            "label": "Wait"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "wait"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "wait"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "wait",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerAction",
                        "canonical": "objects/ComputerAction",
                        "label": "ComputerAction"
                      }
                    },
                    {
                      "name": "pending_safety_checks",
                      "type": "$$array",
                      "description": "The pending safety checks for the computer call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "code",
                            "type": "string",
                            "description": "The type of the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "message",
                            "type": "string",
                            "description": "Details about the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ],
                        "description": "A pending safety check for the computer call.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                          "canonical": "objects/ComputerToolCallSafetyCheck",
                          "label": "ComputerToolCallSafetyCheck"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                        "canonical": "objects/ComputerToolCallSafetyCheck",
                        "label": "ComputerToolCallSafetyCheck"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "Reasoning",
                  "type": "object",
                  "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ReasoningItem",
                    "canonical": "objects/ReasoningItem",
                    "label": "ReasoningItem"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the object. Always `reasoning`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "reasoning"
                        }
                      ],
                      "properties": [
                        {
                          "name": "reasoning",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique identifier of the reasoning content.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "summary",
                      "type": "$$array",
                      "description": "Reasoning text contents.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the object. Always `summary_text`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "summary_text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "summary_text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/OutputItem",
                "canonical": "objects/OutputItem",
                "label": "OutputItem"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/OutputItem",
              "canonical": "objects/OutputItem",
              "label": "OutputItem"
            }
          },
          {
            "name": "output_text",
            "type": "string",
            "description": "SDK-only convenience property that contains the aggregated text output \nfrom all `output_text` items in the `output` array, if any are present. \nSupported in the Python and JavaScript SDKs.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "usage",
            "type": "object",
            "description": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n",
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/ResponseUsage",
              "canonical": "objects/ResponseUsage",
              "label": "ResponseUsage"
            },
            "properties": [
              {
                "name": "input_tokens",
                "type": "integer",
                "description": "The number of input tokens.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "input_tokens_details",
                "type": "object",
                "description": "A detailed breakdown of the input tokens.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "cached_tokens",
                    "type": "integer",
                    "description": "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "output_tokens",
                "type": "integer",
                "description": "The number of output tokens.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "output_tokens_details",
                "type": "object",
                "description": "A detailed breakdown of the output tokens.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "reasoning_tokens",
                    "type": "integer",
                    "description": "The number of reasoning tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "The total number of tokens used.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "parallel_tool_calls",
            "type": "boolean",
            "description": "Whether to allow the model to run tool calls in parallel.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": true
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Response",
          "canonical": "objects/Response",
          "label": "response"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41\",\n  \"object\": \"response\",\n  \"created_at\": 1741476777,\n  \"status\": \"completed\",\n  \"error\": null,\n  \"incomplete_details\": null,\n  \"instructions\": null,\n  \"max_output_tokens\": null,\n  \"model\": \"gpt-4o-2024-08-06\",\n  \"output\": [\n    {\n      \"type\": \"message\",\n      \"id\": \"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41\",\n      \"status\": \"completed\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"output_text\",\n          \"text\": \"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.\",\n          \"annotations\": []\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": true,\n  \"previous_response_id\": null,\n  \"reasoning\": {\n    \"effort\": null,\n    \"summary\": null\n  },\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n    \"format\": {\n      \"type\": \"text\"\n    }\n  },\n  \"tool_choice\": \"auto\",\n  \"tools\": [],\n  \"top_p\": 1.0,\n  \"truncation\": \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 328,\n    \"input_tokens_details\": {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 52,\n    \"output_tokens_details\": {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 380\n  },\n  \"user\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Response",
      "group": [
        "Responses",
        "Responses"
      ]
    }
  },
  {
    "title": "The input item list",
    "description": "A list of Response items.",
    "canonical": "responses/list",
    "definitions": [
      {
        "title": "ResponseItemList",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The type of object returned, must be `list`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "list"
              }
            ],
            "properties": [
              {
                "name": "list",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "data",
            "type": "$$array",
            "description": "A list of items used to generate this response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "",
                  "type": "object",
                  "description": "",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the message input. Always set to `message`.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "message"
                        }
                      ],
                      "properties": [
                        {
                          "name": "message",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the message input. One of `user`, `system`, or `developer`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "system",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "developer",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "A list of one or many input items to the model, containing different content \ntypes.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "symbolDef": {
                        "id": "#/components/schemas/InputMessageContentList",
                        "canonical": "objects/InputMessageContentList",
                        "label": "InputMessageContentList"
                      },
                      "ofProperty": {
                        "name": "",
                        "type": "$$xor",
                        "properties": [
                          {
                            "name": "Input text",
                            "type": "object",
                            "description": "A text input to the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/InputTextContent",
                              "canonical": "objects/InputTextContent",
                              "label": "InputTextContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the input item. Always `input_text`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "input_text"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "input_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "input_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text input to the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "Input image",
                            "type": "object",
                            "description": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/InputImageContent",
                              "canonical": "objects/InputImageContent",
                              "label": "InputImageContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the input item. Always `input_image`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "input_image"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "input_image"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "input_image",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "image_url",
                                "type": "$$union",
                                "description": "",
                                "properties": [
                                  {
                                    "name": "image_url",
                                    "type": "string",
                                    "description": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.",
                                    "meta": []
                                  },
                                  {
                                    "name": "image_url",
                                    "type": "null",
                                    "description": "",
                                    "meta": []
                                  }
                                ]
                              },
                              {
                                "name": "file_id",
                                "type": "$$union",
                                "description": "",
                                "properties": [
                                  {
                                    "name": "file_id",
                                    "type": "string",
                                    "description": "The ID of the file to be sent to the model.",
                                    "meta": []
                                  },
                                  {
                                    "name": "file_id",
                                    "type": "null",
                                    "description": "",
                                    "meta": []
                                  }
                                ]
                              },
                              {
                                "name": "detail",
                                "type": "$$enum",
                                "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "low",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "high",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "Input file",
                            "type": "object",
                            "description": "A file input to the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/InputFileContent",
                              "canonical": "objects/InputFileContent",
                              "label": "InputFileContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the input item. Always `input_file`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "input_file"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "input_file"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "input_file",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "file_id",
                                "type": "$$union",
                                "description": "",
                                "properties": [
                                  {
                                    "name": "file_id",
                                    "type": "string",
                                    "description": "The ID of the file to be sent to the model.",
                                    "meta": []
                                  },
                                  {
                                    "name": "file_id",
                                    "type": "null",
                                    "description": "",
                                    "meta": []
                                  }
                                ]
                              },
                              {
                                "name": "filename",
                                "type": "string",
                                "description": "The name of the file to be sent to the model.",
                                "meta": []
                              },
                              {
                                "name": "file_data",
                                "type": "string",
                                "description": "The content of the file to be sent to the model.\n",
                                "meta": []
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/InputContent",
                          "canonical": "objects/InputContent",
                          "label": "InputContent"
                        }
                      }
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the message input.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ],
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/InputMessageResource",
                    "canonical": "objects/InputMessageResource",
                    "label": "InputMessageResource"
                  }
                },
                {
                  "name": "Output message",
                  "type": "object",
                  "description": "An output message from the model.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputMessage",
                    "canonical": "objects/OutputMessage",
                    "label": "OutputMessage"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the output message.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the output message. Always `message`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "message"
                        }
                      ],
                      "properties": [
                        {
                          "name": "message",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the output message. Always `assistant`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "assistant"
                        }
                      ],
                      "properties": [
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "The content of the output message.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$xor",
                        "properties": [
                          {
                            "name": "Output text",
                            "type": "object",
                            "description": "A text output from the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputTextContent",
                              "canonical": "objects/OutputTextContent",
                              "label": "OutputTextContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the output text. Always `output_text`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "output_text"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "output_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "output_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "annotations",
                                "type": "$$array",
                                "description": "The annotations of the text output.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "$$xor",
                                  "properties": [
                                    {
                                      "name": "File citation",
                                      "type": "object",
                                      "description": "A citation to a file.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FileCitationBody",
                                        "canonical": "objects/FileCitationBody",
                                        "label": "FileCitationBody"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the file citation. Always `file_citation`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "file_citation"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "file_citation"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "file_citation",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The ID of the file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the file in the list of files.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "URL citation",
                                      "type": "object",
                                      "description": "A citation for a web resource used to generate a model response.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/UrlCitationBody",
                                        "canonical": "objects/UrlCitationBody",
                                        "label": "UrlCitationBody"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the URL citation. Always `url_citation`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "defaults",
                                              "value": "url_citation"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "url_citation"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "url_citation",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "url",
                                          "type": "string",
                                          "description": "The URL of the web resource.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "start_index",
                                          "type": "integer",
                                          "description": "The index of the first character of the URL citation in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "end_index",
                                          "type": "integer",
                                          "description": "The index of the last character of the URL citation in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "title",
                                          "type": "string",
                                          "description": "The title of the web resource.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "File path",
                                      "type": "object",
                                      "description": "A path to a file.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FilePath",
                                        "canonical": "objects/FilePath",
                                        "label": "FilePath"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the file path. Always `file_path`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "file_path"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "file_path",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The ID of the file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the file in the list of files.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/Annotation",
                                    "canonical": "objects/Annotation",
                                    "label": "Annotation"
                                  }
                                },
                                "symbolDef": {
                                  "id": "#/components/schemas/Annotation",
                                  "canonical": "objects/Annotation",
                                  "label": "Annotation"
                                }
                              }
                            ]
                          },
                          {
                            "name": "Refusal",
                            "type": "object",
                            "description": "A refusal from the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RefusalContent",
                              "canonical": "objects/RefusalContent",
                              "label": "RefusalContent"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the refusal. Always `refusal`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "refusal"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "refusal"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "refusal",
                                "type": "string",
                                "description": "The refusal explanationfrom the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/OutputContent",
                          "canonical": "objects/OutputContent",
                          "label": "OutputContent"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/OutputContent",
                        "canonical": "objects/OutputContent",
                        "label": "OutputContent"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "File search tool call",
                  "type": "object",
                  "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/FileSearchToolCall",
                    "canonical": "objects/FileSearchToolCall",
                    "label": "FileSearchToolCall"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the file search tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the file search tool call. Always `file_search_call`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "file_search_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "file_search_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "searching",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "failed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "queries",
                      "type": "$$array",
                      "description": "The queries used to search for files.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "string",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    },
                    {
                      "name": "results",
                      "type": "$$array",
                      "description": "The results of the file search tool call.\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "file_id",
                            "type": "string",
                            "description": "The unique ID of the file.\n",
                            "meta": []
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text that was retrieved from the file.\n",
                            "meta": []
                          },
                          {
                            "name": "filename",
                            "type": "string",
                            "description": "The name of the file.\n",
                            "meta": []
                          },
                          {
                            "name": "attributes",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/VectorStoreFileAttributes",
                              "canonical": "objects/VectorStoreFileAttributes",
                              "label": "VectorStoreFileAttributes"
                            }
                          },
                          {
                            "name": "score",
                            "type": "number",
                            "description": "The relevance score of the file - a value between 0 and 1.\n",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    }
                  ]
                },
                {
                  "name": "Computer tool call",
                  "type": "object",
                  "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ComputerToolCall",
                    "canonical": "objects/ComputerToolCall",
                    "label": "ComputerToolCall"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the computer call. Always `computer_call`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "computer_call"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "computer_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "computer_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the computer call.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "An identifier used when responding to the tool call with output.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "action",
                      "type": "$$xor",
                      "description": "",
                      "properties": [
                        {
                          "name": "Click",
                          "type": "object",
                          "description": "A click action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Click",
                            "canonical": "objects/Click",
                            "label": "Click"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "click"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "click"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "click",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "button",
                              "type": "$$enum",
                              "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "left",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "right",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "wheel",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "back",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "forward",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate where the click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate where the click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "DoubleClick",
                          "type": "object",
                          "description": "A double click action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/DoubleClick",
                            "canonical": "objects/DoubleClick",
                            "label": "DoubleClick"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "double_click"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "double_click"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "double_click",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate where the double click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate where the double click occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Drag",
                          "type": "object",
                          "description": "A drag action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Drag",
                            "canonical": "objects/Drag",
                            "label": "Drag"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "drag"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "drag"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "drag",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "path",
                              "type": "$$array",
                              "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "object",
                                "properties": [
                                  {
                                    "name": "x",
                                    "type": "integer",
                                    "description": "The x-coordinate.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "y",
                                    "type": "integer",
                                    "description": "The y-coordinate.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ],
                                "description": "A series of x/y coordinate pairs in the drag path.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "name": "KeyPress",
                          "type": "object",
                          "description": "A collection of keypresses the model would like to perform.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/KeyPress",
                            "canonical": "objects/KeyPress",
                            "label": "KeyPress"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "keypress"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "keypress"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "keypress",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "keys",
                              "type": "$$array",
                              "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "string",
                                "properties": [],
                                "description": "One of the keys the model is requesting to be pressed.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        {
                          "name": "Move",
                          "type": "object",
                          "description": "A mouse move action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Move",
                            "canonical": "objects/Move",
                            "label": "Move"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "move"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "move"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "move",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate to move to.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate to move to.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Screenshot",
                          "type": "object",
                          "description": "A screenshot action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Screenshot",
                            "canonical": "objects/Screenshot",
                            "label": "Screenshot"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "screenshot"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "screenshot"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "screenshot",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        },
                        {
                          "name": "Scroll",
                          "type": "object",
                          "description": "A scroll action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Scroll",
                            "canonical": "objects/Scroll",
                            "label": "Scroll"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "scroll"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "scroll"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "scroll",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "x",
                              "type": "integer",
                              "description": "The x-coordinate where the scroll occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "y",
                              "type": "integer",
                              "description": "The y-coordinate where the scroll occurred.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "scroll_x",
                              "type": "integer",
                              "description": "The horizontal scroll distance.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "scroll_y",
                              "type": "integer",
                              "description": "The vertical scroll distance.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Type",
                          "type": "object",
                          "description": "An action to type in text.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Type",
                            "canonical": "objects/Type",
                            "label": "Type"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "type"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "type"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "text",
                              "type": "string",
                              "description": "The text to type.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Wait",
                          "type": "object",
                          "description": "A wait action.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Wait",
                            "canonical": "objects/Wait",
                            "label": "Wait"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "wait"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "wait"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "wait",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerAction",
                        "canonical": "objects/ComputerAction",
                        "label": "ComputerAction"
                      }
                    },
                    {
                      "name": "pending_safety_checks",
                      "type": "$$array",
                      "description": "The pending safety checks for the computer call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "code",
                            "type": "string",
                            "description": "The type of the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "message",
                            "type": "string",
                            "description": "Details about the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ],
                        "description": "A pending safety check for the computer call.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                          "canonical": "objects/ComputerToolCallSafetyCheck",
                          "label": "ComputerToolCallSafetyCheck"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                        "canonical": "objects/ComputerToolCallSafetyCheck",
                        "label": "ComputerToolCallSafetyCheck"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "",
                  "type": "object",
                  "description": "",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the computer tool call output. Always `computer_call_output`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "computer_call_output"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "computer_call_output"
                        }
                      ],
                      "properties": [
                        {
                          "name": "computer_call_output",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the computer call tool output.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The ID of the computer tool call that produced the output.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "acknowledged_safety_checks",
                      "type": "$$array",
                      "description": "The pending safety checks for the computer call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "code",
                            "type": "string",
                            "description": "The type of the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "message",
                            "type": "string",
                            "description": "Details about the pending safety check.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ],
                        "description": "A pending safety check for the computer call.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                          "canonical": "objects/ComputerToolCallSafetyCheck",
                          "label": "ComputerToolCallSafetyCheck"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                        "canonical": "objects/ComputerToolCallSafetyCheck",
                        "label": "ComputerToolCallSafetyCheck"
                      }
                    },
                    {
                      "name": "output",
                      "type": "object",
                      "description": "A computer screenshot image used with the computer use tool.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerScreenshotImage",
                        "canonical": "objects/ComputerScreenshotImage",
                        "label": "ComputerScreenshotImage"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "Specifies the event type. For a computer screenshot, this property is \nalways set to `computer_screenshot`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_screenshot"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_screenshot"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_screenshot",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "image_url",
                          "type": "string",
                          "description": "The URL of the screenshot image.",
                          "meta": []
                        },
                        {
                          "name": "file_id",
                          "type": "string",
                          "description": "The identifier of an uploaded file that contains the screenshot.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ],
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ComputerToolCallOutputResource",
                    "canonical": "objects/ComputerToolCallOutputResource",
                    "label": "ComputerToolCallOutputResource"
                  }
                },
                {
                  "name": "Web search tool call",
                  "type": "object",
                  "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/WebSearchToolCall",
                    "canonical": "objects/WebSearchToolCall",
                    "label": "WebSearchToolCall"
                  },
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the web search tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the web search tool call. Always `web_search_call`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "web_search_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "web_search_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the web search tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "searching",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "failed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "",
                  "type": "object",
                  "description": "",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the function tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the function tool call. Always `function_call`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function_call"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The unique ID of the function tool call generated by the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to run.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "arguments",
                      "type": "string",
                      "description": "A JSON string of the arguments to pass to the function.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ],
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/FunctionToolCallResource",
                    "canonical": "objects/FunctionToolCallResource",
                    "label": "FunctionToolCallResource"
                  }
                },
                {
                  "name": "",
                  "type": "object",
                  "description": "",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the function call tool output.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the function tool call output. Always `function_call_output`.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function_call_output"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function_call_output",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The unique ID of the function tool call generated by the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "output",
                      "type": "string",
                      "description": "A JSON string of the output of the function tool call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "in_progress",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ],
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/FunctionToolCallOutputResource",
                    "canonical": "objects/FunctionToolCallOutputResource",
                    "label": "FunctionToolCallOutputResource"
                  }
                }
              ],
              "description": "Content item used to generate a response.\n",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ],
              "symbolDef": {
                "id": "#/components/schemas/ItemResource",
                "canonical": "objects/ItemResource",
                "label": "ItemResource"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/ItemResource",
              "canonical": "objects/ItemResource",
              "label": "ItemResource"
            }
          },
          {
            "name": "has_more",
            "type": "boolean",
            "description": "Whether there are more items available.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "first_id",
            "type": "string",
            "description": "The ID of the first item in the list.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "last_id",
            "type": "string",
            "description": "The ID of the last item in the list.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseItemList",
          "canonical": "objects/ResponseItemList",
          "label": "list"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"msg_abc123\",\n      \"type\": \"message\",\n      \"role\": \"user\",\n      \"content\": [\n        {\n          \"type\": \"input_text\",\n          \"text\": \"Tell me a three sentence bedtime story about a unicorn.\"\n        }\n      ]\n    }\n  ],\n  \"first_id\": \"msg_abc123\",\n  \"last_id\": \"msg_abc123\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseItemList",
      "group": [
        "Responses",
        "Responses"
      ]
    }
  },
  {
    "title": "response.created",
    "description": "An event that is emitted when a response is created.\n",
    "canonical": "objects/ResponseCreatedEvent",
    "definitions": [
      {
        "title": "ResponseCreatedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.created`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.created"
              }
            ],
            "properties": [
              {
                "name": "response.created",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "The response that was created.\n",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              },
              {
                "name": "service_tier",
                "type": "$$enum",
                "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "default",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "flex",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ServiceTier",
                  "canonical": "objects/ServiceTier",
                  "label": "ServiceTier"
                }
              },
              {
                "name": "previous_response_id",
                "type": "string",
                "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "ResponsesOnlyModel",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "o1-pro",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-pro-2025-03-19",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "reasoning",
                "type": "object",
                "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "effort",
                    "type": "$$enum",
                    "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ReasoningEffort",
                      "canonical": "objects/ReasoningEffort",
                      "label": "ReasoningEffort"
                    }
                  },
                  {
                    "name": "summary",
                    "type": "$$enum",
                    "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "generate_summary",
                    "type": "$$enum",
                    "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "deprecated",
                        "value": "true"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "max_output_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "text",
                "type": "object",
                "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
                "meta": [],
                "properties": [
                  {
                    "name": "format",
                    "type": "$$xor",
                    "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                    "properties": [
                      {
                        "name": "Text",
                        "type": "object",
                        "description": "Default response format. Used to generate text responses.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatText",
                          "canonical": "objects/ResponseFormatText",
                          "label": "ResponseFormatText"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `text`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "JSON schema",
                        "type": "object",
                        "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/TextResponseFormatJsonSchema",
                          "canonical": "objects/TextResponseFormatJsonSchema",
                          "label": "TextResponseFormatJsonSchema"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_schema`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_schema"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_schema",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "JSON object",
                        "type": "object",
                        "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonObject",
                          "canonical": "objects/ResponseFormatJsonObject",
                          "label": "ResponseFormatJsonObject"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_object`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_object"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_object",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatConfiguration",
                      "canonical": "objects/TextResponseFormatConfiguration",
                      "label": "TextResponseFormatConfiguration"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "File search",
                      "type": "object",
                      "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchTool",
                        "canonical": "objects/FileSearchTool",
                        "label": "FileSearchTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool. Always `file_search`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "file_search"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "vector_store_ids",
                          "type": "$$array",
                          "description": "The IDs of the vector stores to search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                          "meta": []
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "Ranking options for search.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default-2024-11-15",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Compound Filter",
                              "type": "object",
                              "description": "Combine multiple filters using `and` or `or`.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/CompoundFilter",
                                "canonical": "objects/CompoundFilter",
                                "label": "CompoundFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Type of operation: `and` or `or`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "and",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "or",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "filters",
                                  "type": "$$array",
                                  "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Comparison Filter",
                                        "type": "object",
                                        "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ComparisonFilter",
                                          "canonical": "objects/ComparisonFilter",
                                          "label": "ComparisonFilter"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "eq"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "eq",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "ne",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "key",
                                            "type": "string",
                                            "description": "The key to compare against the value.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "$$xor",
                                            "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                            "properties": [
                                              {
                                                "name": "value",
                                                "type": "string",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "number",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "boolean",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "filters",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function",
                      "type": "object",
                      "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionTool",
                        "canonical": "objects/FunctionTool",
                        "label": "FunctionTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool. Always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "function"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "description",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                              "meta": []
                            },
                            {
                              "name": "description",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "A JSON schema object describing the parameters of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enforce strict parameter validation. Default `true`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "strict",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Web search preview",
                      "type": "object",
                      "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchPreviewTool",
                        "canonical": "objects/WebSearchPreviewTool",
                        "label": "WebSearchPreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "web_search_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "web_search_preview_2025_03_11",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "user_location",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "user_location",
                              "type": "object",
                              "description": "The user's location.",
                              "meta": [],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of location approximation. Always `approximate`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "approximate"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "approximate"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "approximate",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "country",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "country",
                                      "type": "string",
                                      "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "country",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "region",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "region",
                                      "type": "string",
                                      "description": "Free text input for the region of the user, e.g. `California`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "region",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "city",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "city",
                                      "type": "string",
                                      "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "city",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "timezone",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "timezone",
                                      "type": "string",
                                      "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "timezone",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "user_location",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "search_context_size",
                          "type": "$$enum",
                          "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "medium",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer use preview",
                      "type": "object",
                      "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerUsePreviewTool",
                        "canonical": "objects/ComputerUsePreviewTool",
                        "label": "ComputerUsePreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer use tool. Always `computer_use_preview`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_use_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_use_preview"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_use_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "environment",
                          "type": "$$enum",
                          "description": "The type of computer environment to control.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "windows",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "mac",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "linux",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ubuntu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "browser",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "display_width",
                          "type": "integer",
                          "description": "The width of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "display_height",
                          "type": "integer",
                          "description": "The height of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/Tool",
                    "canonical": "objects/Tool",
                    "label": "Tool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Tool",
                  "canonical": "objects/Tool",
                  "label": "Tool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
                "properties": [
                  {
                    "name": "Tool choice mode",
                    "type": "$$enum",
                    "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceOptions",
                      "canonical": "objects/ToolChoiceOptions",
                      "label": "ToolChoiceOptions"
                    }
                  },
                  {
                    "name": "Hosted tool",
                    "type": "object",
                    "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceTypes",
                      "canonical": "objects/ToolChoiceTypes",
                      "label": "ToolChoiceTypes"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "computer_use_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview_2025_03_11",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Function tool",
                    "type": "object",
                    "description": "Use this option to force the model to call a specific function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceFunction",
                      "canonical": "objects/ToolChoiceFunction",
                      "label": "ToolChoiceFunction"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "For function calling, the type is always `function`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "truncation",
                "type": "$$enum",
                "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "disabled"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "disabled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for this Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type of this resource - always set to `response`.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "response"
                  }
                ],
                "properties": [
                  {
                    "name": "response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, or `incomplete`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "in_progress",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "created_at",
                "type": "number",
                "description": "Unix timestamp (in seconds) of when this Response was created.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "error",
                "type": "object",
                "description": "An error object returned when the model fails to generate a Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseError",
                  "canonical": "objects/ResponseError",
                  "label": "ResponseError"
                },
                "properties": [
                  {
                    "name": "code",
                    "type": "$$enum",
                    "description": "The error code for the response.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "rate_limit_exceeded",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_prompt",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "vector_store_timeout",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_format",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_base64_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_url",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_small",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_parse_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_content_policy_violation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_mode",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "unsupported_image_media_type",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "empty_image_file",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed_to_download_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_not_found",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseErrorCode",
                      "canonical": "objects/ResponseErrorCode",
                      "label": "ResponseErrorCode"
                    }
                  },
                  {
                    "name": "message",
                    "type": "string",
                    "description": "A human-readable description of the error.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "incomplete_details",
                "type": "object",
                "description": "Details about why the response is incomplete.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason why the response is incomplete.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and \n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$union",
                  "properties": [
                    {
                      "name": "Output message",
                      "type": "object",
                      "description": "An output message from the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputMessage",
                        "canonical": "objects/OutputMessage",
                        "label": "OutputMessage"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the output message. Always `message`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "message"
                            }
                          ],
                          "properties": [
                            {
                              "name": "message",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the output message. Always `assistant`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$array",
                          "description": "The content of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/OutputTextContent",
                                  "canonical": "objects/OutputTextContent",
                                  "label": "OutputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "output_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "annotations",
                                    "type": "$$array",
                                    "description": "The annotations of the text output.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "File citation",
                                          "type": "object",
                                          "description": "A citation to a file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileCitationBody",
                                            "canonical": "objects/FileCitationBody",
                                            "label": "FileCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file citation. Always `file_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "file_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "URL citation",
                                          "type": "object",
                                          "description": "A citation for a web resource used to generate a model response.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/UrlCitationBody",
                                            "canonical": "objects/UrlCitationBody",
                                            "label": "UrlCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the URL citation. Always `url_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "url_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "url_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "url_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "url",
                                              "type": "string",
                                              "description": "The URL of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "start_index",
                                              "type": "integer",
                                              "description": "The index of the first character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "end_index",
                                              "type": "integer",
                                              "description": "The index of the last character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "title",
                                              "type": "string",
                                              "description": "The title of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File path",
                                          "type": "object",
                                          "description": "A path to a file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FilePath",
                                            "canonical": "objects/FilePath",
                                            "label": "FilePath"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file path. Always `file_path`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_path"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_path",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Annotation",
                                        "canonical": "objects/Annotation",
                                        "label": "Annotation"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/Annotation",
                                      "canonical": "objects/Annotation",
                                      "label": "Annotation"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "Refusal",
                                "type": "object",
                                "description": "A refusal from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RefusalContent",
                                  "canonical": "objects/RefusalContent",
                                  "label": "RefusalContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the refusal. Always `refusal`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "refusal"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal explanationfrom the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputContent",
                              "canonical": "objects/OutputContent",
                              "label": "OutputContent"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/OutputContent",
                            "canonical": "objects/OutputContent",
                            "label": "OutputContent"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "File search tool call",
                      "type": "object",
                      "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchToolCall",
                        "canonical": "objects/FileSearchToolCall",
                        "label": "FileSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool call. Always `file_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "queries",
                          "type": "$$array",
                          "description": "The queries used to search for files.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "results",
                          "type": "$$array",
                          "description": "The results of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "The unique ID of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text that was retrieved from the file.\n",
                                "meta": []
                              },
                              {
                                "name": "filename",
                                "type": "string",
                                "description": "The name of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "attributes",
                                "type": "object",
                                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/VectorStoreFileAttributes",
                                  "canonical": "objects/VectorStoreFileAttributes",
                                  "label": "VectorStoreFileAttributes"
                                }
                              },
                              {
                                "name": "score",
                                "type": "number",
                                "description": "The relevance score of the file - a value between 0 and 1.\n",
                                "meta": []
                              }
                            ],
                            "description": "",
                            "meta": []
                          }
                        }
                      ]
                    },
                    {
                      "name": "Function tool call",
                      "type": "object",
                      "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionToolCall",
                        "canonical": "objects/FunctionToolCall",
                        "label": "FunctionToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the function tool call.\n",
                          "meta": []
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool call. Always `function_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "The unique ID of the function tool call generated by the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to run.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "A JSON string of the arguments to pass to the function.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Web search tool call",
                      "type": "object",
                      "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchToolCall",
                        "canonical": "objects/WebSearchToolCall",
                        "label": "WebSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool call. Always `web_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "web_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer tool call",
                      "type": "object",
                      "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCall",
                        "canonical": "objects/ComputerToolCall",
                        "label": "ComputerToolCall"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer call. Always `computer_call`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_call"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the computer call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "An identifier used when responding to the tool call with output.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "action",
                          "type": "$$xor",
                          "description": "",
                          "properties": [
                            {
                              "name": "Click",
                              "type": "object",
                              "description": "A click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Click",
                                "canonical": "objects/Click",
                                "label": "Click"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "button",
                                  "type": "$$enum",
                                  "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "left",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "right",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "wheel",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "back",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "forward",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "DoubleClick",
                              "type": "object",
                              "description": "A double click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/DoubleClick",
                                "canonical": "objects/DoubleClick",
                                "label": "DoubleClick"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "double_click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "double_click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "double_click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Drag",
                              "type": "object",
                              "description": "A drag action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Drag",
                                "canonical": "objects/Drag",
                                "label": "Drag"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "drag"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "drag"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "drag",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "path",
                                  "type": "$$array",
                                  "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "x",
                                        "type": "integer",
                                        "description": "The x-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "y",
                                        "type": "integer",
                                        "description": "The y-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "A series of x/y coordinate pairs in the drag path.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "KeyPress",
                              "type": "object",
                              "description": "A collection of keypresses the model would like to perform.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/KeyPress",
                                "canonical": "objects/KeyPress",
                                "label": "KeyPress"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "keypress"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "keypress"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "keypress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "keys",
                                  "type": "$$array",
                                  "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "string",
                                    "properties": [],
                                    "description": "One of the keys the model is requesting to be pressed.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Move",
                              "type": "object",
                              "description": "A mouse move action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Move",
                                "canonical": "objects/Move",
                                "label": "Move"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "move"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "move"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "move",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Screenshot",
                              "type": "object",
                              "description": "A screenshot action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Screenshot",
                                "canonical": "objects/Screenshot",
                                "label": "Screenshot"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "screenshot"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "screenshot"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "screenshot",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Scroll",
                              "type": "object",
                              "description": "A scroll action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Scroll",
                                "canonical": "objects/Scroll",
                                "label": "Scroll"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "scroll"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "scroll"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "scroll",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_x",
                                  "type": "integer",
                                  "description": "The horizontal scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_y",
                                  "type": "integer",
                                  "description": "The vertical scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Type",
                              "type": "object",
                              "description": "An action to type in text.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Type",
                                "canonical": "objects/Type",
                                "label": "Type"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "type"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "type"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "The text to type.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Wait",
                              "type": "object",
                              "description": "A wait action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Wait",
                                "canonical": "objects/Wait",
                                "label": "Wait"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "wait"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "wait"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "wait",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerAction",
                            "canonical": "objects/ComputerAction",
                            "label": "ComputerAction"
                          }
                        },
                        {
                          "name": "pending_safety_checks",
                          "type": "$$array",
                          "description": "The pending safety checks for the computer call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The ID of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "code",
                                "type": "string",
                                "description": "The type of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "Details about the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "A pending safety check for the computer call.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                              "canonical": "objects/ComputerToolCallSafetyCheck",
                              "label": "ComputerToolCallSafetyCheck"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                            "canonical": "objects/ComputerToolCallSafetyCheck",
                            "label": "ComputerToolCallSafetyCheck"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Reasoning",
                      "type": "object",
                      "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ReasoningItem",
                        "canonical": "objects/ReasoningItem",
                        "label": "ReasoningItem"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `reasoning`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "reasoning"
                            }
                          ],
                          "properties": [
                            {
                              "name": "reasoning",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique identifier of the reasoning content.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "summary",
                          "type": "$$array",
                          "description": "Reasoning text contents.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the object. Always `summary_text`.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "summary_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "summary_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputItem",
                    "canonical": "objects/OutputItem",
                    "label": "OutputItem"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/OutputItem",
                  "canonical": "objects/OutputItem",
                  "label": "OutputItem"
                }
              },
              {
                "name": "output_text",
                "type": "string",
                "description": "SDK-only convenience property that contains the aggregated text output \nfrom all `output_text` items in the `output` array, if any are present. \nSupported in the Python and JavaScript SDKs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseUsage",
                  "canonical": "objects/ResponseUsage",
                  "label": "ResponseUsage"
                },
                "properties": [
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "input_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "output_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning_tokens",
                        "type": "integer",
                        "description": "The number of reasoning tokens.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to allow the model to run tool calls in parallel.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": true
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseCreatedEvent",
          "canonical": "objects/ResponseCreatedEvent",
          "label": "ResponseCreatedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.created\",\n  \"response\": {\n    \"id\": \"resp_67ccfcdd16748190a91872c75d38539e09e4d4aac714747c\",\n    \"object\": \"response\",\n    \"created_at\": 1741487325,\n    \"status\": \"in_progress\",\n    \"error\": null,\n    \"incomplete_details\": null,\n    \"instructions\": null,\n    \"max_output_tokens\": null,\n    \"model\": \"gpt-4o-2024-08-06\",\n    \"output\": [],\n    \"parallel_tool_calls\": true,\n    \"previous_response_id\": null,\n    \"reasoning\": {\n      \"effort\": null,\n      \"summary\": null\n    },\n    \"store\": true,\n    \"temperature\": 1,\n    \"text\": {\n      \"format\": {\n        \"type\": \"text\"\n      }\n    },\n    \"tool_choice\": \"auto\",\n    \"tools\": [],\n    \"top_p\": 1,\n    \"truncation\": \"disabled\",\n    \"usage\": null,\n    \"user\": null,\n    \"metadata\": {}\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseCreatedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.in_progress",
    "description": "Emitted when the response is in progress.",
    "canonical": "objects/ResponseInProgressEvent",
    "definitions": [
      {
        "title": "ResponseInProgressEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.in_progress`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.in_progress"
              }
            ],
            "properties": [
              {
                "name": "response.in_progress",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "The response that is in progress.\n",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              },
              {
                "name": "service_tier",
                "type": "$$enum",
                "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "default",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "flex",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ServiceTier",
                  "canonical": "objects/ServiceTier",
                  "label": "ServiceTier"
                }
              },
              {
                "name": "previous_response_id",
                "type": "string",
                "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "ResponsesOnlyModel",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "o1-pro",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-pro-2025-03-19",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "reasoning",
                "type": "object",
                "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "effort",
                    "type": "$$enum",
                    "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ReasoningEffort",
                      "canonical": "objects/ReasoningEffort",
                      "label": "ReasoningEffort"
                    }
                  },
                  {
                    "name": "summary",
                    "type": "$$enum",
                    "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "generate_summary",
                    "type": "$$enum",
                    "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "deprecated",
                        "value": "true"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "max_output_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "text",
                "type": "object",
                "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
                "meta": [],
                "properties": [
                  {
                    "name": "format",
                    "type": "$$xor",
                    "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                    "properties": [
                      {
                        "name": "Text",
                        "type": "object",
                        "description": "Default response format. Used to generate text responses.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatText",
                          "canonical": "objects/ResponseFormatText",
                          "label": "ResponseFormatText"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `text`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "JSON schema",
                        "type": "object",
                        "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/TextResponseFormatJsonSchema",
                          "canonical": "objects/TextResponseFormatJsonSchema",
                          "label": "TextResponseFormatJsonSchema"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_schema`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_schema"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_schema",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "JSON object",
                        "type": "object",
                        "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonObject",
                          "canonical": "objects/ResponseFormatJsonObject",
                          "label": "ResponseFormatJsonObject"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_object`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_object"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_object",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatConfiguration",
                      "canonical": "objects/TextResponseFormatConfiguration",
                      "label": "TextResponseFormatConfiguration"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "File search",
                      "type": "object",
                      "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchTool",
                        "canonical": "objects/FileSearchTool",
                        "label": "FileSearchTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool. Always `file_search`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "file_search"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "vector_store_ids",
                          "type": "$$array",
                          "description": "The IDs of the vector stores to search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                          "meta": []
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "Ranking options for search.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default-2024-11-15",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Compound Filter",
                              "type": "object",
                              "description": "Combine multiple filters using `and` or `or`.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/CompoundFilter",
                                "canonical": "objects/CompoundFilter",
                                "label": "CompoundFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Type of operation: `and` or `or`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "and",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "or",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "filters",
                                  "type": "$$array",
                                  "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Comparison Filter",
                                        "type": "object",
                                        "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ComparisonFilter",
                                          "canonical": "objects/ComparisonFilter",
                                          "label": "ComparisonFilter"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "eq"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "eq",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "ne",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "key",
                                            "type": "string",
                                            "description": "The key to compare against the value.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "$$xor",
                                            "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                            "properties": [
                                              {
                                                "name": "value",
                                                "type": "string",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "number",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "boolean",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "filters",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function",
                      "type": "object",
                      "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionTool",
                        "canonical": "objects/FunctionTool",
                        "label": "FunctionTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool. Always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "function"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "description",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                              "meta": []
                            },
                            {
                              "name": "description",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "A JSON schema object describing the parameters of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enforce strict parameter validation. Default `true`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "strict",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Web search preview",
                      "type": "object",
                      "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchPreviewTool",
                        "canonical": "objects/WebSearchPreviewTool",
                        "label": "WebSearchPreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "web_search_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "web_search_preview_2025_03_11",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "user_location",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "user_location",
                              "type": "object",
                              "description": "The user's location.",
                              "meta": [],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of location approximation. Always `approximate`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "approximate"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "approximate"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "approximate",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "country",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "country",
                                      "type": "string",
                                      "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "country",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "region",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "region",
                                      "type": "string",
                                      "description": "Free text input for the region of the user, e.g. `California`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "region",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "city",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "city",
                                      "type": "string",
                                      "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "city",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "timezone",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "timezone",
                                      "type": "string",
                                      "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "timezone",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "user_location",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "search_context_size",
                          "type": "$$enum",
                          "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "medium",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer use preview",
                      "type": "object",
                      "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerUsePreviewTool",
                        "canonical": "objects/ComputerUsePreviewTool",
                        "label": "ComputerUsePreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer use tool. Always `computer_use_preview`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_use_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_use_preview"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_use_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "environment",
                          "type": "$$enum",
                          "description": "The type of computer environment to control.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "windows",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "mac",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "linux",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ubuntu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "browser",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "display_width",
                          "type": "integer",
                          "description": "The width of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "display_height",
                          "type": "integer",
                          "description": "The height of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/Tool",
                    "canonical": "objects/Tool",
                    "label": "Tool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Tool",
                  "canonical": "objects/Tool",
                  "label": "Tool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
                "properties": [
                  {
                    "name": "Tool choice mode",
                    "type": "$$enum",
                    "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceOptions",
                      "canonical": "objects/ToolChoiceOptions",
                      "label": "ToolChoiceOptions"
                    }
                  },
                  {
                    "name": "Hosted tool",
                    "type": "object",
                    "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceTypes",
                      "canonical": "objects/ToolChoiceTypes",
                      "label": "ToolChoiceTypes"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "computer_use_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview_2025_03_11",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Function tool",
                    "type": "object",
                    "description": "Use this option to force the model to call a specific function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceFunction",
                      "canonical": "objects/ToolChoiceFunction",
                      "label": "ToolChoiceFunction"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "For function calling, the type is always `function`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "truncation",
                "type": "$$enum",
                "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "disabled"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "disabled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for this Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type of this resource - always set to `response`.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "response"
                  }
                ],
                "properties": [
                  {
                    "name": "response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, or `incomplete`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "in_progress",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "created_at",
                "type": "number",
                "description": "Unix timestamp (in seconds) of when this Response was created.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "error",
                "type": "object",
                "description": "An error object returned when the model fails to generate a Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseError",
                  "canonical": "objects/ResponseError",
                  "label": "ResponseError"
                },
                "properties": [
                  {
                    "name": "code",
                    "type": "$$enum",
                    "description": "The error code for the response.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "rate_limit_exceeded",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_prompt",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "vector_store_timeout",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_format",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_base64_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_url",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_small",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_parse_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_content_policy_violation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_mode",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "unsupported_image_media_type",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "empty_image_file",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed_to_download_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_not_found",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseErrorCode",
                      "canonical": "objects/ResponseErrorCode",
                      "label": "ResponseErrorCode"
                    }
                  },
                  {
                    "name": "message",
                    "type": "string",
                    "description": "A human-readable description of the error.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "incomplete_details",
                "type": "object",
                "description": "Details about why the response is incomplete.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason why the response is incomplete.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and \n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$union",
                  "properties": [
                    {
                      "name": "Output message",
                      "type": "object",
                      "description": "An output message from the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputMessage",
                        "canonical": "objects/OutputMessage",
                        "label": "OutputMessage"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the output message. Always `message`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "message"
                            }
                          ],
                          "properties": [
                            {
                              "name": "message",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the output message. Always `assistant`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$array",
                          "description": "The content of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/OutputTextContent",
                                  "canonical": "objects/OutputTextContent",
                                  "label": "OutputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "output_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "annotations",
                                    "type": "$$array",
                                    "description": "The annotations of the text output.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "File citation",
                                          "type": "object",
                                          "description": "A citation to a file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileCitationBody",
                                            "canonical": "objects/FileCitationBody",
                                            "label": "FileCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file citation. Always `file_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "file_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "URL citation",
                                          "type": "object",
                                          "description": "A citation for a web resource used to generate a model response.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/UrlCitationBody",
                                            "canonical": "objects/UrlCitationBody",
                                            "label": "UrlCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the URL citation. Always `url_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "url_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "url_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "url_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "url",
                                              "type": "string",
                                              "description": "The URL of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "start_index",
                                              "type": "integer",
                                              "description": "The index of the first character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "end_index",
                                              "type": "integer",
                                              "description": "The index of the last character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "title",
                                              "type": "string",
                                              "description": "The title of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File path",
                                          "type": "object",
                                          "description": "A path to a file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FilePath",
                                            "canonical": "objects/FilePath",
                                            "label": "FilePath"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file path. Always `file_path`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_path"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_path",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Annotation",
                                        "canonical": "objects/Annotation",
                                        "label": "Annotation"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/Annotation",
                                      "canonical": "objects/Annotation",
                                      "label": "Annotation"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "Refusal",
                                "type": "object",
                                "description": "A refusal from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RefusalContent",
                                  "canonical": "objects/RefusalContent",
                                  "label": "RefusalContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the refusal. Always `refusal`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "refusal"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal explanationfrom the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputContent",
                              "canonical": "objects/OutputContent",
                              "label": "OutputContent"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/OutputContent",
                            "canonical": "objects/OutputContent",
                            "label": "OutputContent"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "File search tool call",
                      "type": "object",
                      "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchToolCall",
                        "canonical": "objects/FileSearchToolCall",
                        "label": "FileSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool call. Always `file_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "queries",
                          "type": "$$array",
                          "description": "The queries used to search for files.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "results",
                          "type": "$$array",
                          "description": "The results of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "The unique ID of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text that was retrieved from the file.\n",
                                "meta": []
                              },
                              {
                                "name": "filename",
                                "type": "string",
                                "description": "The name of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "attributes",
                                "type": "object",
                                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/VectorStoreFileAttributes",
                                  "canonical": "objects/VectorStoreFileAttributes",
                                  "label": "VectorStoreFileAttributes"
                                }
                              },
                              {
                                "name": "score",
                                "type": "number",
                                "description": "The relevance score of the file - a value between 0 and 1.\n",
                                "meta": []
                              }
                            ],
                            "description": "",
                            "meta": []
                          }
                        }
                      ]
                    },
                    {
                      "name": "Function tool call",
                      "type": "object",
                      "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionToolCall",
                        "canonical": "objects/FunctionToolCall",
                        "label": "FunctionToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the function tool call.\n",
                          "meta": []
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool call. Always `function_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "The unique ID of the function tool call generated by the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to run.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "A JSON string of the arguments to pass to the function.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Web search tool call",
                      "type": "object",
                      "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchToolCall",
                        "canonical": "objects/WebSearchToolCall",
                        "label": "WebSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool call. Always `web_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "web_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer tool call",
                      "type": "object",
                      "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCall",
                        "canonical": "objects/ComputerToolCall",
                        "label": "ComputerToolCall"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer call. Always `computer_call`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_call"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the computer call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "An identifier used when responding to the tool call with output.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "action",
                          "type": "$$xor",
                          "description": "",
                          "properties": [
                            {
                              "name": "Click",
                              "type": "object",
                              "description": "A click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Click",
                                "canonical": "objects/Click",
                                "label": "Click"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "button",
                                  "type": "$$enum",
                                  "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "left",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "right",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "wheel",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "back",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "forward",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "DoubleClick",
                              "type": "object",
                              "description": "A double click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/DoubleClick",
                                "canonical": "objects/DoubleClick",
                                "label": "DoubleClick"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "double_click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "double_click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "double_click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Drag",
                              "type": "object",
                              "description": "A drag action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Drag",
                                "canonical": "objects/Drag",
                                "label": "Drag"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "drag"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "drag"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "drag",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "path",
                                  "type": "$$array",
                                  "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "x",
                                        "type": "integer",
                                        "description": "The x-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "y",
                                        "type": "integer",
                                        "description": "The y-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "A series of x/y coordinate pairs in the drag path.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "KeyPress",
                              "type": "object",
                              "description": "A collection of keypresses the model would like to perform.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/KeyPress",
                                "canonical": "objects/KeyPress",
                                "label": "KeyPress"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "keypress"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "keypress"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "keypress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "keys",
                                  "type": "$$array",
                                  "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "string",
                                    "properties": [],
                                    "description": "One of the keys the model is requesting to be pressed.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Move",
                              "type": "object",
                              "description": "A mouse move action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Move",
                                "canonical": "objects/Move",
                                "label": "Move"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "move"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "move"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "move",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Screenshot",
                              "type": "object",
                              "description": "A screenshot action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Screenshot",
                                "canonical": "objects/Screenshot",
                                "label": "Screenshot"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "screenshot"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "screenshot"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "screenshot",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Scroll",
                              "type": "object",
                              "description": "A scroll action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Scroll",
                                "canonical": "objects/Scroll",
                                "label": "Scroll"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "scroll"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "scroll"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "scroll",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_x",
                                  "type": "integer",
                                  "description": "The horizontal scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_y",
                                  "type": "integer",
                                  "description": "The vertical scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Type",
                              "type": "object",
                              "description": "An action to type in text.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Type",
                                "canonical": "objects/Type",
                                "label": "Type"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "type"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "type"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "The text to type.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Wait",
                              "type": "object",
                              "description": "A wait action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Wait",
                                "canonical": "objects/Wait",
                                "label": "Wait"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "wait"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "wait"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "wait",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerAction",
                            "canonical": "objects/ComputerAction",
                            "label": "ComputerAction"
                          }
                        },
                        {
                          "name": "pending_safety_checks",
                          "type": "$$array",
                          "description": "The pending safety checks for the computer call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The ID of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "code",
                                "type": "string",
                                "description": "The type of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "Details about the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "A pending safety check for the computer call.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                              "canonical": "objects/ComputerToolCallSafetyCheck",
                              "label": "ComputerToolCallSafetyCheck"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                            "canonical": "objects/ComputerToolCallSafetyCheck",
                            "label": "ComputerToolCallSafetyCheck"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Reasoning",
                      "type": "object",
                      "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ReasoningItem",
                        "canonical": "objects/ReasoningItem",
                        "label": "ReasoningItem"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `reasoning`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "reasoning"
                            }
                          ],
                          "properties": [
                            {
                              "name": "reasoning",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique identifier of the reasoning content.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "summary",
                          "type": "$$array",
                          "description": "Reasoning text contents.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the object. Always `summary_text`.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "summary_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "summary_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputItem",
                    "canonical": "objects/OutputItem",
                    "label": "OutputItem"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/OutputItem",
                  "canonical": "objects/OutputItem",
                  "label": "OutputItem"
                }
              },
              {
                "name": "output_text",
                "type": "string",
                "description": "SDK-only convenience property that contains the aggregated text output \nfrom all `output_text` items in the `output` array, if any are present. \nSupported in the Python and JavaScript SDKs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseUsage",
                  "canonical": "objects/ResponseUsage",
                  "label": "ResponseUsage"
                },
                "properties": [
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "input_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "output_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning_tokens",
                        "type": "integer",
                        "description": "The number of reasoning tokens.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to allow the model to run tool calls in parallel.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": true
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseInProgressEvent",
          "canonical": "objects/ResponseInProgressEvent",
          "label": "ResponseInProgressEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.in_progress\",\n  \"response\": {\n    \"id\": \"resp_67ccfcdd16748190a91872c75d38539e09e4d4aac714747c\",\n    \"object\": \"response\",\n    \"created_at\": 1741487325,\n    \"status\": \"in_progress\",\n    \"error\": null,\n    \"incomplete_details\": null,\n    \"instructions\": null,\n    \"max_output_tokens\": null,\n    \"model\": \"gpt-4o-2024-08-06\",\n    \"output\": [],\n    \"parallel_tool_calls\": true,\n    \"previous_response_id\": null,\n    \"reasoning\": {\n      \"effort\": null,\n      \"summary\": null\n    },\n    \"store\": true,\n    \"temperature\": 1,\n    \"text\": {\n      \"format\": {\n        \"type\": \"text\"\n      }\n    },\n    \"tool_choice\": \"auto\",\n    \"tools\": [],\n    \"top_p\": 1,\n    \"truncation\": \"disabled\",\n    \"usage\": null,\n    \"user\": null,\n    \"metadata\": {}\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseInProgressEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.completed",
    "description": "Emitted when the model response is complete.",
    "canonical": "objects/ResponseCompletedEvent",
    "definitions": [
      {
        "title": "ResponseCompletedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.completed`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.completed"
              }
            ],
            "properties": [
              {
                "name": "response.completed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "Properties of the completed response.\n",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              },
              {
                "name": "service_tier",
                "type": "$$enum",
                "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "default",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "flex",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ServiceTier",
                  "canonical": "objects/ServiceTier",
                  "label": "ServiceTier"
                }
              },
              {
                "name": "previous_response_id",
                "type": "string",
                "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "ResponsesOnlyModel",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "o1-pro",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-pro-2025-03-19",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "reasoning",
                "type": "object",
                "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "effort",
                    "type": "$$enum",
                    "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ReasoningEffort",
                      "canonical": "objects/ReasoningEffort",
                      "label": "ReasoningEffort"
                    }
                  },
                  {
                    "name": "summary",
                    "type": "$$enum",
                    "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "generate_summary",
                    "type": "$$enum",
                    "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "deprecated",
                        "value": "true"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "max_output_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "text",
                "type": "object",
                "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
                "meta": [],
                "properties": [
                  {
                    "name": "format",
                    "type": "$$xor",
                    "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                    "properties": [
                      {
                        "name": "Text",
                        "type": "object",
                        "description": "Default response format. Used to generate text responses.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatText",
                          "canonical": "objects/ResponseFormatText",
                          "label": "ResponseFormatText"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `text`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "JSON schema",
                        "type": "object",
                        "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/TextResponseFormatJsonSchema",
                          "canonical": "objects/TextResponseFormatJsonSchema",
                          "label": "TextResponseFormatJsonSchema"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_schema`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_schema"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_schema",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "JSON object",
                        "type": "object",
                        "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonObject",
                          "canonical": "objects/ResponseFormatJsonObject",
                          "label": "ResponseFormatJsonObject"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_object`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_object"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_object",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatConfiguration",
                      "canonical": "objects/TextResponseFormatConfiguration",
                      "label": "TextResponseFormatConfiguration"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "File search",
                      "type": "object",
                      "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchTool",
                        "canonical": "objects/FileSearchTool",
                        "label": "FileSearchTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool. Always `file_search`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "file_search"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "vector_store_ids",
                          "type": "$$array",
                          "description": "The IDs of the vector stores to search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                          "meta": []
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "Ranking options for search.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default-2024-11-15",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Compound Filter",
                              "type": "object",
                              "description": "Combine multiple filters using `and` or `or`.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/CompoundFilter",
                                "canonical": "objects/CompoundFilter",
                                "label": "CompoundFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Type of operation: `and` or `or`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "and",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "or",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "filters",
                                  "type": "$$array",
                                  "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Comparison Filter",
                                        "type": "object",
                                        "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ComparisonFilter",
                                          "canonical": "objects/ComparisonFilter",
                                          "label": "ComparisonFilter"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "eq"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "eq",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "ne",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "key",
                                            "type": "string",
                                            "description": "The key to compare against the value.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "$$xor",
                                            "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                            "properties": [
                                              {
                                                "name": "value",
                                                "type": "string",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "number",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "boolean",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "filters",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function",
                      "type": "object",
                      "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionTool",
                        "canonical": "objects/FunctionTool",
                        "label": "FunctionTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool. Always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "function"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "description",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                              "meta": []
                            },
                            {
                              "name": "description",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "A JSON schema object describing the parameters of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enforce strict parameter validation. Default `true`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "strict",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Web search preview",
                      "type": "object",
                      "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchPreviewTool",
                        "canonical": "objects/WebSearchPreviewTool",
                        "label": "WebSearchPreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "web_search_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "web_search_preview_2025_03_11",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "user_location",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "user_location",
                              "type": "object",
                              "description": "The user's location.",
                              "meta": [],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of location approximation. Always `approximate`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "approximate"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "approximate"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "approximate",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "country",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "country",
                                      "type": "string",
                                      "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "country",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "region",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "region",
                                      "type": "string",
                                      "description": "Free text input for the region of the user, e.g. `California`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "region",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "city",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "city",
                                      "type": "string",
                                      "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "city",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "timezone",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "timezone",
                                      "type": "string",
                                      "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "timezone",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "user_location",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "search_context_size",
                          "type": "$$enum",
                          "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "medium",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer use preview",
                      "type": "object",
                      "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerUsePreviewTool",
                        "canonical": "objects/ComputerUsePreviewTool",
                        "label": "ComputerUsePreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer use tool. Always `computer_use_preview`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_use_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_use_preview"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_use_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "environment",
                          "type": "$$enum",
                          "description": "The type of computer environment to control.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "windows",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "mac",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "linux",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ubuntu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "browser",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "display_width",
                          "type": "integer",
                          "description": "The width of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "display_height",
                          "type": "integer",
                          "description": "The height of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/Tool",
                    "canonical": "objects/Tool",
                    "label": "Tool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Tool",
                  "canonical": "objects/Tool",
                  "label": "Tool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
                "properties": [
                  {
                    "name": "Tool choice mode",
                    "type": "$$enum",
                    "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceOptions",
                      "canonical": "objects/ToolChoiceOptions",
                      "label": "ToolChoiceOptions"
                    }
                  },
                  {
                    "name": "Hosted tool",
                    "type": "object",
                    "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceTypes",
                      "canonical": "objects/ToolChoiceTypes",
                      "label": "ToolChoiceTypes"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "computer_use_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview_2025_03_11",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Function tool",
                    "type": "object",
                    "description": "Use this option to force the model to call a specific function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceFunction",
                      "canonical": "objects/ToolChoiceFunction",
                      "label": "ToolChoiceFunction"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "For function calling, the type is always `function`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "truncation",
                "type": "$$enum",
                "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "disabled"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "disabled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for this Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type of this resource - always set to `response`.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "response"
                  }
                ],
                "properties": [
                  {
                    "name": "response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, or `incomplete`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "in_progress",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "created_at",
                "type": "number",
                "description": "Unix timestamp (in seconds) of when this Response was created.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "error",
                "type": "object",
                "description": "An error object returned when the model fails to generate a Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseError",
                  "canonical": "objects/ResponseError",
                  "label": "ResponseError"
                },
                "properties": [
                  {
                    "name": "code",
                    "type": "$$enum",
                    "description": "The error code for the response.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "rate_limit_exceeded",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_prompt",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "vector_store_timeout",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_format",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_base64_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_url",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_small",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_parse_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_content_policy_violation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_mode",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "unsupported_image_media_type",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "empty_image_file",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed_to_download_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_not_found",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseErrorCode",
                      "canonical": "objects/ResponseErrorCode",
                      "label": "ResponseErrorCode"
                    }
                  },
                  {
                    "name": "message",
                    "type": "string",
                    "description": "A human-readable description of the error.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "incomplete_details",
                "type": "object",
                "description": "Details about why the response is incomplete.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason why the response is incomplete.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and \n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$union",
                  "properties": [
                    {
                      "name": "Output message",
                      "type": "object",
                      "description": "An output message from the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputMessage",
                        "canonical": "objects/OutputMessage",
                        "label": "OutputMessage"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the output message. Always `message`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "message"
                            }
                          ],
                          "properties": [
                            {
                              "name": "message",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the output message. Always `assistant`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$array",
                          "description": "The content of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/OutputTextContent",
                                  "canonical": "objects/OutputTextContent",
                                  "label": "OutputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "output_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "annotations",
                                    "type": "$$array",
                                    "description": "The annotations of the text output.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "File citation",
                                          "type": "object",
                                          "description": "A citation to a file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileCitationBody",
                                            "canonical": "objects/FileCitationBody",
                                            "label": "FileCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file citation. Always `file_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "file_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "URL citation",
                                          "type": "object",
                                          "description": "A citation for a web resource used to generate a model response.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/UrlCitationBody",
                                            "canonical": "objects/UrlCitationBody",
                                            "label": "UrlCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the URL citation. Always `url_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "url_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "url_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "url_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "url",
                                              "type": "string",
                                              "description": "The URL of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "start_index",
                                              "type": "integer",
                                              "description": "The index of the first character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "end_index",
                                              "type": "integer",
                                              "description": "The index of the last character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "title",
                                              "type": "string",
                                              "description": "The title of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File path",
                                          "type": "object",
                                          "description": "A path to a file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FilePath",
                                            "canonical": "objects/FilePath",
                                            "label": "FilePath"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file path. Always `file_path`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_path"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_path",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Annotation",
                                        "canonical": "objects/Annotation",
                                        "label": "Annotation"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/Annotation",
                                      "canonical": "objects/Annotation",
                                      "label": "Annotation"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "Refusal",
                                "type": "object",
                                "description": "A refusal from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RefusalContent",
                                  "canonical": "objects/RefusalContent",
                                  "label": "RefusalContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the refusal. Always `refusal`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "refusal"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal explanationfrom the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputContent",
                              "canonical": "objects/OutputContent",
                              "label": "OutputContent"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/OutputContent",
                            "canonical": "objects/OutputContent",
                            "label": "OutputContent"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "File search tool call",
                      "type": "object",
                      "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchToolCall",
                        "canonical": "objects/FileSearchToolCall",
                        "label": "FileSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool call. Always `file_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "queries",
                          "type": "$$array",
                          "description": "The queries used to search for files.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "results",
                          "type": "$$array",
                          "description": "The results of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "The unique ID of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text that was retrieved from the file.\n",
                                "meta": []
                              },
                              {
                                "name": "filename",
                                "type": "string",
                                "description": "The name of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "attributes",
                                "type": "object",
                                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/VectorStoreFileAttributes",
                                  "canonical": "objects/VectorStoreFileAttributes",
                                  "label": "VectorStoreFileAttributes"
                                }
                              },
                              {
                                "name": "score",
                                "type": "number",
                                "description": "The relevance score of the file - a value between 0 and 1.\n",
                                "meta": []
                              }
                            ],
                            "description": "",
                            "meta": []
                          }
                        }
                      ]
                    },
                    {
                      "name": "Function tool call",
                      "type": "object",
                      "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionToolCall",
                        "canonical": "objects/FunctionToolCall",
                        "label": "FunctionToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the function tool call.\n",
                          "meta": []
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool call. Always `function_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "The unique ID of the function tool call generated by the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to run.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "A JSON string of the arguments to pass to the function.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Web search tool call",
                      "type": "object",
                      "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchToolCall",
                        "canonical": "objects/WebSearchToolCall",
                        "label": "WebSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool call. Always `web_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "web_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer tool call",
                      "type": "object",
                      "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCall",
                        "canonical": "objects/ComputerToolCall",
                        "label": "ComputerToolCall"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer call. Always `computer_call`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_call"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the computer call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "An identifier used when responding to the tool call with output.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "action",
                          "type": "$$xor",
                          "description": "",
                          "properties": [
                            {
                              "name": "Click",
                              "type": "object",
                              "description": "A click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Click",
                                "canonical": "objects/Click",
                                "label": "Click"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "button",
                                  "type": "$$enum",
                                  "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "left",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "right",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "wheel",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "back",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "forward",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "DoubleClick",
                              "type": "object",
                              "description": "A double click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/DoubleClick",
                                "canonical": "objects/DoubleClick",
                                "label": "DoubleClick"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "double_click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "double_click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "double_click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Drag",
                              "type": "object",
                              "description": "A drag action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Drag",
                                "canonical": "objects/Drag",
                                "label": "Drag"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "drag"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "drag"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "drag",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "path",
                                  "type": "$$array",
                                  "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "x",
                                        "type": "integer",
                                        "description": "The x-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "y",
                                        "type": "integer",
                                        "description": "The y-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "A series of x/y coordinate pairs in the drag path.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "KeyPress",
                              "type": "object",
                              "description": "A collection of keypresses the model would like to perform.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/KeyPress",
                                "canonical": "objects/KeyPress",
                                "label": "KeyPress"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "keypress"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "keypress"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "keypress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "keys",
                                  "type": "$$array",
                                  "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "string",
                                    "properties": [],
                                    "description": "One of the keys the model is requesting to be pressed.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Move",
                              "type": "object",
                              "description": "A mouse move action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Move",
                                "canonical": "objects/Move",
                                "label": "Move"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "move"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "move"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "move",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Screenshot",
                              "type": "object",
                              "description": "A screenshot action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Screenshot",
                                "canonical": "objects/Screenshot",
                                "label": "Screenshot"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "screenshot"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "screenshot"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "screenshot",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Scroll",
                              "type": "object",
                              "description": "A scroll action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Scroll",
                                "canonical": "objects/Scroll",
                                "label": "Scroll"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "scroll"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "scroll"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "scroll",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_x",
                                  "type": "integer",
                                  "description": "The horizontal scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_y",
                                  "type": "integer",
                                  "description": "The vertical scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Type",
                              "type": "object",
                              "description": "An action to type in text.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Type",
                                "canonical": "objects/Type",
                                "label": "Type"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "type"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "type"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "The text to type.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Wait",
                              "type": "object",
                              "description": "A wait action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Wait",
                                "canonical": "objects/Wait",
                                "label": "Wait"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "wait"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "wait"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "wait",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerAction",
                            "canonical": "objects/ComputerAction",
                            "label": "ComputerAction"
                          }
                        },
                        {
                          "name": "pending_safety_checks",
                          "type": "$$array",
                          "description": "The pending safety checks for the computer call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The ID of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "code",
                                "type": "string",
                                "description": "The type of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "Details about the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "A pending safety check for the computer call.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                              "canonical": "objects/ComputerToolCallSafetyCheck",
                              "label": "ComputerToolCallSafetyCheck"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                            "canonical": "objects/ComputerToolCallSafetyCheck",
                            "label": "ComputerToolCallSafetyCheck"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Reasoning",
                      "type": "object",
                      "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ReasoningItem",
                        "canonical": "objects/ReasoningItem",
                        "label": "ReasoningItem"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `reasoning`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "reasoning"
                            }
                          ],
                          "properties": [
                            {
                              "name": "reasoning",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique identifier of the reasoning content.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "summary",
                          "type": "$$array",
                          "description": "Reasoning text contents.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the object. Always `summary_text`.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "summary_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "summary_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputItem",
                    "canonical": "objects/OutputItem",
                    "label": "OutputItem"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/OutputItem",
                  "canonical": "objects/OutputItem",
                  "label": "OutputItem"
                }
              },
              {
                "name": "output_text",
                "type": "string",
                "description": "SDK-only convenience property that contains the aggregated text output \nfrom all `output_text` items in the `output` array, if any are present. \nSupported in the Python and JavaScript SDKs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseUsage",
                  "canonical": "objects/ResponseUsage",
                  "label": "ResponseUsage"
                },
                "properties": [
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "input_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "output_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning_tokens",
                        "type": "integer",
                        "description": "The number of reasoning tokens.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to allow the model to run tool calls in parallel.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": true
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseCompletedEvent",
          "canonical": "objects/ResponseCompletedEvent",
          "label": "ResponseCompletedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.completed\",\n  \"response\": {\n    \"id\": \"resp_123\",\n    \"object\": \"response\",\n    \"created_at\": 1740855869,\n    \"status\": \"completed\",\n    \"error\": null,\n    \"incomplete_details\": null,\n    \"input\": [],\n    \"instructions\": null,\n    \"max_output_tokens\": null,\n    \"model\": \"gpt-4o-mini-2024-07-18\",\n    \"output\": [\n      {\n        \"id\": \"msg_123\",\n        \"type\": \"message\",\n        \"role\": \"assistant\",\n        \"content\": [\n          {\n            \"type\": \"output_text\",\n            \"text\": \"In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.\",\n            \"annotations\": []\n          }\n        ]\n      }\n    ],\n    \"previous_response_id\": null,\n    \"reasoning_effort\": null,\n    \"store\": false,\n    \"temperature\": 1,\n    \"text\": {\n      \"format\": {\n        \"type\": \"text\"\n      }\n    },\n    \"tool_choice\": \"auto\",\n    \"tools\": [],\n    \"top_p\": 1,\n    \"truncation\": \"disabled\",\n    \"usage\": {\n      \"input_tokens\": 0,\n      \"output_tokens\": 0,\n      \"output_tokens_details\": {\n        \"reasoning_tokens\": 0\n      },\n      \"total_tokens\": 0\n    },\n    \"user\": null,\n    \"metadata\": {}\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseCompletedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.failed",
    "description": "An event that is emitted when a response fails.\n",
    "canonical": "objects/ResponseFailedEvent",
    "definitions": [
      {
        "title": "ResponseFailedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.failed`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.failed"
              }
            ],
            "properties": [
              {
                "name": "response.failed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "The response that failed.\n",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              },
              {
                "name": "service_tier",
                "type": "$$enum",
                "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "default",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "flex",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ServiceTier",
                  "canonical": "objects/ServiceTier",
                  "label": "ServiceTier"
                }
              },
              {
                "name": "previous_response_id",
                "type": "string",
                "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "ResponsesOnlyModel",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "o1-pro",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-pro-2025-03-19",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "reasoning",
                "type": "object",
                "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "effort",
                    "type": "$$enum",
                    "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ReasoningEffort",
                      "canonical": "objects/ReasoningEffort",
                      "label": "ReasoningEffort"
                    }
                  },
                  {
                    "name": "summary",
                    "type": "$$enum",
                    "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "generate_summary",
                    "type": "$$enum",
                    "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "deprecated",
                        "value": "true"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "max_output_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "text",
                "type": "object",
                "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
                "meta": [],
                "properties": [
                  {
                    "name": "format",
                    "type": "$$xor",
                    "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                    "properties": [
                      {
                        "name": "Text",
                        "type": "object",
                        "description": "Default response format. Used to generate text responses.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatText",
                          "canonical": "objects/ResponseFormatText",
                          "label": "ResponseFormatText"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `text`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "JSON schema",
                        "type": "object",
                        "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/TextResponseFormatJsonSchema",
                          "canonical": "objects/TextResponseFormatJsonSchema",
                          "label": "TextResponseFormatJsonSchema"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_schema`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_schema"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_schema",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "JSON object",
                        "type": "object",
                        "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonObject",
                          "canonical": "objects/ResponseFormatJsonObject",
                          "label": "ResponseFormatJsonObject"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_object`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_object"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_object",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatConfiguration",
                      "canonical": "objects/TextResponseFormatConfiguration",
                      "label": "TextResponseFormatConfiguration"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "File search",
                      "type": "object",
                      "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchTool",
                        "canonical": "objects/FileSearchTool",
                        "label": "FileSearchTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool. Always `file_search`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "file_search"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "vector_store_ids",
                          "type": "$$array",
                          "description": "The IDs of the vector stores to search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                          "meta": []
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "Ranking options for search.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default-2024-11-15",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Compound Filter",
                              "type": "object",
                              "description": "Combine multiple filters using `and` or `or`.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/CompoundFilter",
                                "canonical": "objects/CompoundFilter",
                                "label": "CompoundFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Type of operation: `and` or `or`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "and",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "or",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "filters",
                                  "type": "$$array",
                                  "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Comparison Filter",
                                        "type": "object",
                                        "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ComparisonFilter",
                                          "canonical": "objects/ComparisonFilter",
                                          "label": "ComparisonFilter"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "eq"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "eq",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "ne",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "key",
                                            "type": "string",
                                            "description": "The key to compare against the value.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "$$xor",
                                            "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                            "properties": [
                                              {
                                                "name": "value",
                                                "type": "string",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "number",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "boolean",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "filters",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function",
                      "type": "object",
                      "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionTool",
                        "canonical": "objects/FunctionTool",
                        "label": "FunctionTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool. Always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "function"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "description",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                              "meta": []
                            },
                            {
                              "name": "description",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "A JSON schema object describing the parameters of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enforce strict parameter validation. Default `true`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "strict",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Web search preview",
                      "type": "object",
                      "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchPreviewTool",
                        "canonical": "objects/WebSearchPreviewTool",
                        "label": "WebSearchPreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "web_search_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "web_search_preview_2025_03_11",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "user_location",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "user_location",
                              "type": "object",
                              "description": "The user's location.",
                              "meta": [],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of location approximation. Always `approximate`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "approximate"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "approximate"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "approximate",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "country",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "country",
                                      "type": "string",
                                      "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "country",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "region",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "region",
                                      "type": "string",
                                      "description": "Free text input for the region of the user, e.g. `California`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "region",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "city",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "city",
                                      "type": "string",
                                      "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "city",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "timezone",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "timezone",
                                      "type": "string",
                                      "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "timezone",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "user_location",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "search_context_size",
                          "type": "$$enum",
                          "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "medium",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer use preview",
                      "type": "object",
                      "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerUsePreviewTool",
                        "canonical": "objects/ComputerUsePreviewTool",
                        "label": "ComputerUsePreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer use tool. Always `computer_use_preview`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_use_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_use_preview"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_use_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "environment",
                          "type": "$$enum",
                          "description": "The type of computer environment to control.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "windows",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "mac",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "linux",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ubuntu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "browser",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "display_width",
                          "type": "integer",
                          "description": "The width of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "display_height",
                          "type": "integer",
                          "description": "The height of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/Tool",
                    "canonical": "objects/Tool",
                    "label": "Tool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Tool",
                  "canonical": "objects/Tool",
                  "label": "Tool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
                "properties": [
                  {
                    "name": "Tool choice mode",
                    "type": "$$enum",
                    "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceOptions",
                      "canonical": "objects/ToolChoiceOptions",
                      "label": "ToolChoiceOptions"
                    }
                  },
                  {
                    "name": "Hosted tool",
                    "type": "object",
                    "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceTypes",
                      "canonical": "objects/ToolChoiceTypes",
                      "label": "ToolChoiceTypes"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "computer_use_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview_2025_03_11",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Function tool",
                    "type": "object",
                    "description": "Use this option to force the model to call a specific function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceFunction",
                      "canonical": "objects/ToolChoiceFunction",
                      "label": "ToolChoiceFunction"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "For function calling, the type is always `function`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "truncation",
                "type": "$$enum",
                "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "disabled"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "disabled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for this Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type of this resource - always set to `response`.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "response"
                  }
                ],
                "properties": [
                  {
                    "name": "response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, or `incomplete`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "in_progress",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "created_at",
                "type": "number",
                "description": "Unix timestamp (in seconds) of when this Response was created.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "error",
                "type": "object",
                "description": "An error object returned when the model fails to generate a Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseError",
                  "canonical": "objects/ResponseError",
                  "label": "ResponseError"
                },
                "properties": [
                  {
                    "name": "code",
                    "type": "$$enum",
                    "description": "The error code for the response.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "rate_limit_exceeded",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_prompt",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "vector_store_timeout",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_format",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_base64_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_url",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_small",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_parse_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_content_policy_violation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_mode",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "unsupported_image_media_type",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "empty_image_file",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed_to_download_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_not_found",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseErrorCode",
                      "canonical": "objects/ResponseErrorCode",
                      "label": "ResponseErrorCode"
                    }
                  },
                  {
                    "name": "message",
                    "type": "string",
                    "description": "A human-readable description of the error.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "incomplete_details",
                "type": "object",
                "description": "Details about why the response is incomplete.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason why the response is incomplete.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and \n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$union",
                  "properties": [
                    {
                      "name": "Output message",
                      "type": "object",
                      "description": "An output message from the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputMessage",
                        "canonical": "objects/OutputMessage",
                        "label": "OutputMessage"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the output message. Always `message`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "message"
                            }
                          ],
                          "properties": [
                            {
                              "name": "message",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the output message. Always `assistant`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$array",
                          "description": "The content of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/OutputTextContent",
                                  "canonical": "objects/OutputTextContent",
                                  "label": "OutputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "output_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "annotations",
                                    "type": "$$array",
                                    "description": "The annotations of the text output.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "File citation",
                                          "type": "object",
                                          "description": "A citation to a file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileCitationBody",
                                            "canonical": "objects/FileCitationBody",
                                            "label": "FileCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file citation. Always `file_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "file_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "URL citation",
                                          "type": "object",
                                          "description": "A citation for a web resource used to generate a model response.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/UrlCitationBody",
                                            "canonical": "objects/UrlCitationBody",
                                            "label": "UrlCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the URL citation. Always `url_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "url_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "url_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "url_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "url",
                                              "type": "string",
                                              "description": "The URL of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "start_index",
                                              "type": "integer",
                                              "description": "The index of the first character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "end_index",
                                              "type": "integer",
                                              "description": "The index of the last character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "title",
                                              "type": "string",
                                              "description": "The title of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File path",
                                          "type": "object",
                                          "description": "A path to a file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FilePath",
                                            "canonical": "objects/FilePath",
                                            "label": "FilePath"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file path. Always `file_path`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_path"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_path",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Annotation",
                                        "canonical": "objects/Annotation",
                                        "label": "Annotation"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/Annotation",
                                      "canonical": "objects/Annotation",
                                      "label": "Annotation"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "Refusal",
                                "type": "object",
                                "description": "A refusal from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RefusalContent",
                                  "canonical": "objects/RefusalContent",
                                  "label": "RefusalContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the refusal. Always `refusal`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "refusal"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal explanationfrom the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputContent",
                              "canonical": "objects/OutputContent",
                              "label": "OutputContent"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/OutputContent",
                            "canonical": "objects/OutputContent",
                            "label": "OutputContent"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "File search tool call",
                      "type": "object",
                      "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchToolCall",
                        "canonical": "objects/FileSearchToolCall",
                        "label": "FileSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool call. Always `file_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "queries",
                          "type": "$$array",
                          "description": "The queries used to search for files.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "results",
                          "type": "$$array",
                          "description": "The results of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "The unique ID of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text that was retrieved from the file.\n",
                                "meta": []
                              },
                              {
                                "name": "filename",
                                "type": "string",
                                "description": "The name of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "attributes",
                                "type": "object",
                                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/VectorStoreFileAttributes",
                                  "canonical": "objects/VectorStoreFileAttributes",
                                  "label": "VectorStoreFileAttributes"
                                }
                              },
                              {
                                "name": "score",
                                "type": "number",
                                "description": "The relevance score of the file - a value between 0 and 1.\n",
                                "meta": []
                              }
                            ],
                            "description": "",
                            "meta": []
                          }
                        }
                      ]
                    },
                    {
                      "name": "Function tool call",
                      "type": "object",
                      "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionToolCall",
                        "canonical": "objects/FunctionToolCall",
                        "label": "FunctionToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the function tool call.\n",
                          "meta": []
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool call. Always `function_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "The unique ID of the function tool call generated by the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to run.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "A JSON string of the arguments to pass to the function.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Web search tool call",
                      "type": "object",
                      "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchToolCall",
                        "canonical": "objects/WebSearchToolCall",
                        "label": "WebSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool call. Always `web_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "web_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer tool call",
                      "type": "object",
                      "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCall",
                        "canonical": "objects/ComputerToolCall",
                        "label": "ComputerToolCall"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer call. Always `computer_call`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_call"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the computer call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "An identifier used when responding to the tool call with output.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "action",
                          "type": "$$xor",
                          "description": "",
                          "properties": [
                            {
                              "name": "Click",
                              "type": "object",
                              "description": "A click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Click",
                                "canonical": "objects/Click",
                                "label": "Click"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "button",
                                  "type": "$$enum",
                                  "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "left",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "right",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "wheel",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "back",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "forward",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "DoubleClick",
                              "type": "object",
                              "description": "A double click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/DoubleClick",
                                "canonical": "objects/DoubleClick",
                                "label": "DoubleClick"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "double_click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "double_click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "double_click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Drag",
                              "type": "object",
                              "description": "A drag action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Drag",
                                "canonical": "objects/Drag",
                                "label": "Drag"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "drag"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "drag"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "drag",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "path",
                                  "type": "$$array",
                                  "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "x",
                                        "type": "integer",
                                        "description": "The x-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "y",
                                        "type": "integer",
                                        "description": "The y-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "A series of x/y coordinate pairs in the drag path.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "KeyPress",
                              "type": "object",
                              "description": "A collection of keypresses the model would like to perform.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/KeyPress",
                                "canonical": "objects/KeyPress",
                                "label": "KeyPress"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "keypress"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "keypress"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "keypress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "keys",
                                  "type": "$$array",
                                  "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "string",
                                    "properties": [],
                                    "description": "One of the keys the model is requesting to be pressed.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Move",
                              "type": "object",
                              "description": "A mouse move action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Move",
                                "canonical": "objects/Move",
                                "label": "Move"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "move"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "move"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "move",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Screenshot",
                              "type": "object",
                              "description": "A screenshot action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Screenshot",
                                "canonical": "objects/Screenshot",
                                "label": "Screenshot"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "screenshot"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "screenshot"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "screenshot",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Scroll",
                              "type": "object",
                              "description": "A scroll action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Scroll",
                                "canonical": "objects/Scroll",
                                "label": "Scroll"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "scroll"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "scroll"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "scroll",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_x",
                                  "type": "integer",
                                  "description": "The horizontal scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_y",
                                  "type": "integer",
                                  "description": "The vertical scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Type",
                              "type": "object",
                              "description": "An action to type in text.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Type",
                                "canonical": "objects/Type",
                                "label": "Type"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "type"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "type"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "The text to type.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Wait",
                              "type": "object",
                              "description": "A wait action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Wait",
                                "canonical": "objects/Wait",
                                "label": "Wait"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "wait"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "wait"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "wait",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerAction",
                            "canonical": "objects/ComputerAction",
                            "label": "ComputerAction"
                          }
                        },
                        {
                          "name": "pending_safety_checks",
                          "type": "$$array",
                          "description": "The pending safety checks for the computer call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The ID of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "code",
                                "type": "string",
                                "description": "The type of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "Details about the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "A pending safety check for the computer call.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                              "canonical": "objects/ComputerToolCallSafetyCheck",
                              "label": "ComputerToolCallSafetyCheck"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                            "canonical": "objects/ComputerToolCallSafetyCheck",
                            "label": "ComputerToolCallSafetyCheck"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Reasoning",
                      "type": "object",
                      "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ReasoningItem",
                        "canonical": "objects/ReasoningItem",
                        "label": "ReasoningItem"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `reasoning`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "reasoning"
                            }
                          ],
                          "properties": [
                            {
                              "name": "reasoning",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique identifier of the reasoning content.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "summary",
                          "type": "$$array",
                          "description": "Reasoning text contents.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the object. Always `summary_text`.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "summary_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "summary_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputItem",
                    "canonical": "objects/OutputItem",
                    "label": "OutputItem"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/OutputItem",
                  "canonical": "objects/OutputItem",
                  "label": "OutputItem"
                }
              },
              {
                "name": "output_text",
                "type": "string",
                "description": "SDK-only convenience property that contains the aggregated text output \nfrom all `output_text` items in the `output` array, if any are present. \nSupported in the Python and JavaScript SDKs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseUsage",
                  "canonical": "objects/ResponseUsage",
                  "label": "ResponseUsage"
                },
                "properties": [
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "input_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "output_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning_tokens",
                        "type": "integer",
                        "description": "The number of reasoning tokens.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to allow the model to run tool calls in parallel.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": true
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseFailedEvent",
          "canonical": "objects/ResponseFailedEvent",
          "label": "ResponseFailedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.failed\",\n  \"response\": {\n    \"id\": \"resp_123\",\n    \"object\": \"response\",\n    \"created_at\": 1740855869,\n    \"status\": \"failed\",\n    \"error\": {\n      \"code\": \"server_error\",\n      \"message\": \"The model failed to generate a response.\"\n    },\n    \"incomplete_details\": null,\n    \"instructions\": null,\n    \"max_output_tokens\": null,\n    \"model\": \"gpt-4o-mini-2024-07-18\",\n    \"output\": [],\n    \"previous_response_id\": null,\n    \"reasoning_effort\": null,\n    \"store\": false,\n    \"temperature\": 1,\n    \"text\": {\n      \"format\": {\n        \"type\": \"text\"\n      }\n    },\n    \"tool_choice\": \"auto\",\n    \"tools\": [],\n    \"top_p\": 1,\n    \"truncation\": \"disabled\",\n    \"usage\": null,\n    \"user\": null,\n    \"metadata\": {}\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseFailedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.incomplete",
    "description": "An event that is emitted when a response finishes as incomplete.\n",
    "canonical": "objects/ResponseIncompleteEvent",
    "definitions": [
      {
        "title": "ResponseIncompleteEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.incomplete`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.incomplete"
              }
            ],
            "properties": [
              {
                "name": "response.incomplete",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "The response that was incomplete.\n",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              },
              {
                "name": "service_tier",
                "type": "$$enum",
                "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "default",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "flex",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ServiceTier",
                  "canonical": "objects/ServiceTier",
                  "label": "ServiceTier"
                }
              },
              {
                "name": "previous_response_id",
                "type": "string",
                "description": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about \n[conversation state](/docs/guides/conversation-state).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "ResponsesOnlyModel",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "o1-pro",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-pro-2025-03-19",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "computer-use-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "reasoning",
                "type": "object",
                "description": "**o-series models only**\n\nConfiguration options for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "effort",
                    "type": "$$enum",
                    "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ReasoningEffort",
                      "canonical": "objects/ReasoningEffort",
                      "label": "ReasoningEffort"
                    }
                  },
                  {
                    "name": "summary",
                    "type": "$$enum",
                    "description": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "generate_summary",
                    "type": "$$enum",
                    "description": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.\n",
                    "meta": [
                      {
                        "name": "deprecated",
                        "value": "true"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "concise",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "detailed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "max_output_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "text",
                "type": "object",
                "description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)\n",
                "meta": [],
                "properties": [
                  {
                    "name": "format",
                    "type": "$$xor",
                    "description": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs, \nwhich ensures the model will match your supplied JSON schema. Learn more in the \n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                    "properties": [
                      {
                        "name": "Text",
                        "type": "object",
                        "description": "Default response format. Used to generate text responses.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatText",
                          "canonical": "objects/ResponseFormatText",
                          "label": "ResponseFormatText"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `text`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "text"
                              }
                            ],
                            "properties": [
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "JSON schema",
                        "type": "object",
                        "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/TextResponseFormatJsonSchema",
                          "canonical": "objects/TextResponseFormatJsonSchema",
                          "label": "TextResponseFormatJsonSchema"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_schema`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_schema"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_schema",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "JSON object",
                        "type": "object",
                        "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonObject",
                          "canonical": "objects/ResponseFormatJsonObject",
                          "label": "ResponseFormatJsonObject"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of response format being defined. Always `json_object`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "json_object"
                              }
                            ],
                            "properties": [
                              {
                                "name": "json_object",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/TextResponseFormatConfiguration",
                      "canonical": "objects/TextResponseFormatConfiguration",
                      "label": "TextResponseFormatConfiguration"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "An array of tools the model may call while generating a response. You \ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n  model's capabilities, like [web search](/docs/guides/tools-web-search)\n  or [file search](/docs/guides/tools-file-search). Learn more about\n  [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n  enabling the model to call your own code. Learn more about\n  [function calling](/docs/guides/function-calling).\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "File search",
                      "type": "object",
                      "description": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchTool",
                        "canonical": "objects/FileSearchTool",
                        "label": "FileSearchTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool. Always `file_search`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "file_search"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "vector_store_ids",
                          "type": "$$array",
                          "description": "The IDs of the vector stores to search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                          "meta": []
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "Ranking options for search.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default-2024-11-15",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "filters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Compound Filter",
                              "type": "object",
                              "description": "Combine multiple filters using `and` or `or`.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/CompoundFilter",
                                "canonical": "objects/CompoundFilter",
                                "label": "CompoundFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Type of operation: `and` or `or`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "and",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "or",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "filters",
                                  "type": "$$array",
                                  "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Comparison Filter",
                                        "type": "object",
                                        "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ComparisonFilter",
                                          "canonical": "objects/ComparisonFilter",
                                          "label": "ComparisonFilter"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "eq"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "eq",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "ne",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "gte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lt",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "lte",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "key",
                                            "type": "string",
                                            "description": "The key to compare against the value.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "value",
                                            "type": "$$xor",
                                            "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                            "properties": [
                                              {
                                                "name": "value",
                                                "type": "string",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "number",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "value",
                                                "type": "boolean",
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ],
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "filters",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function",
                      "type": "object",
                      "description": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionTool",
                        "canonical": "objects/FunctionTool",
                        "label": "FunctionTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool. Always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "function"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "description",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of the function. Used by the model to determine whether or not to call the function.",
                              "meta": []
                            },
                            {
                              "name": "description",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "A JSON schema object describing the parameters of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "strict",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enforce strict parameter validation. Default `true`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "strict",
                              "type": "null",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Web search preview",
                      "type": "object",
                      "description": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchPreviewTool",
                        "canonical": "objects/WebSearchPreviewTool",
                        "label": "WebSearchPreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "web_search_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "web_search_preview_2025_03_11",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "user_location",
                          "type": "$$union",
                          "description": "",
                          "properties": [
                            {
                              "name": "user_location",
                              "type": "object",
                              "description": "The user's location.",
                              "meta": [],
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of location approximation. Always `approximate`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "approximate"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "approximate"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "approximate",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "country",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "country",
                                      "type": "string",
                                      "description": "The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "country",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "region",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "region",
                                      "type": "string",
                                      "description": "Free text input for the region of the user, e.g. `California`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "region",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "city",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "city",
                                      "type": "string",
                                      "description": "Free text input for the city of the user, e.g. `San Francisco`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "city",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                },
                                {
                                  "name": "timezone",
                                  "type": "$$union",
                                  "description": "",
                                  "properties": [
                                    {
                                      "name": "timezone",
                                      "type": "string",
                                      "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.",
                                      "meta": []
                                    },
                                    {
                                      "name": "timezone",
                                      "type": "null",
                                      "description": "",
                                      "meta": []
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "user_location",
                              "type": "null",
                              "description": "",
                              "meta": []
                            }
                          ]
                        },
                        {
                          "name": "search_context_size",
                          "type": "$$enum",
                          "description": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "medium",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer use preview",
                      "type": "object",
                      "description": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerUsePreviewTool",
                        "canonical": "objects/ComputerUsePreviewTool",
                        "label": "ComputerUsePreviewTool"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer use tool. Always `computer_use_preview`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_use_preview"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_use_preview"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_use_preview",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "environment",
                          "type": "$$enum",
                          "description": "The type of computer environment to control.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "windows",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "mac",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "linux",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ubuntu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "browser",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "display_width",
                          "type": "integer",
                          "description": "The width of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "display_height",
                          "type": "integer",
                          "description": "The height of the computer display.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/Tool",
                    "canonical": "objects/Tool",
                    "label": "Tool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/Tool",
                  "canonical": "objects/Tool",
                  "label": "Tool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.\n",
                "properties": [
                  {
                    "name": "Tool choice mode",
                    "type": "$$enum",
                    "description": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceOptions",
                      "canonical": "objects/ToolChoiceOptions",
                      "label": "ToolChoiceOptions"
                    }
                  },
                  {
                    "name": "Hosted tool",
                    "type": "object",
                    "description": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceTypes",
                      "canonical": "objects/ToolChoiceTypes",
                      "label": "ToolChoiceTypes"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of hosted tool the model should to use. Learn more about\n[built-in tools](/docs/guides/tools).\n\nAllowed values are:\n- `file_search`\n- `web_search_preview`\n- `computer_use_preview`\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "computer_use_preview",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "web_search_preview_2025_03_11",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Function tool",
                    "type": "object",
                    "description": "Use this option to force the model to call a specific function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ToolChoiceFunction",
                      "canonical": "objects/ToolChoiceFunction",
                      "label": "ToolChoiceFunction"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "For function calling, the type is always `function`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "truncation",
                "type": "$$enum",
                "description": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n  the model's context window size, the model will truncate the \n  response to fit the context window by dropping input items in the\n  middle of the conversation. \n- `disabled` (default): If a model response will exceed the context window \n  size for a model, the request will fail with a 400 error.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "disabled"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "disabled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for this Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type of this resource - always set to `response`.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "response"
                  }
                ],
                "properties": [
                  {
                    "name": "response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the response generation. One of `completed`, `failed`, \n`in_progress`, or `incomplete`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "in_progress",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "created_at",
                "type": "number",
                "description": "Unix timestamp (in seconds) of when this Response was created.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "error",
                "type": "object",
                "description": "An error object returned when the model fails to generate a Response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseError",
                  "canonical": "objects/ResponseError",
                  "label": "ResponseError"
                },
                "properties": [
                  {
                    "name": "code",
                    "type": "$$enum",
                    "description": "The error code for the response.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "rate_limit_exceeded",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_prompt",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "vector_store_timeout",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_format",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_base64_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_url",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_too_small",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_parse_error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_content_policy_violation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "invalid_image_mode",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_too_large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "unsupported_image_media_type",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "empty_image_file",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed_to_download_image",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "image_file_not_found",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseErrorCode",
                      "canonical": "objects/ResponseErrorCode",
                      "label": "ResponseErrorCode"
                    }
                  },
                  {
                    "name": "message",
                    "type": "string",
                    "description": "A human-readable description of the error.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "incomplete_details",
                "type": "object",
                "description": "Details about why the response is incomplete.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason why the response is incomplete.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n  on the model's response.\n- Rather than accessing the first item in the `output` array and \n  assuming it's an `assistant` message with the content generated by\n  the model, you might consider using the `output_text` property where\n  supported in SDKs.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$union",
                  "properties": [
                    {
                      "name": "Output message",
                      "type": "object",
                      "description": "An output message from the model.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputMessage",
                        "canonical": "objects/OutputMessage",
                        "label": "OutputMessage"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the output message. Always `message`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "message"
                            }
                          ],
                          "properties": [
                            {
                              "name": "message",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the output message. Always `assistant`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$array",
                          "description": "The content of the output message.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/OutputTextContent",
                                  "canonical": "objects/OutputTextContent",
                                  "label": "OutputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "output_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "annotations",
                                    "type": "$$array",
                                    "description": "The annotations of the text output.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "File citation",
                                          "type": "object",
                                          "description": "A citation to a file.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileCitationBody",
                                            "canonical": "objects/FileCitationBody",
                                            "label": "FileCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file citation. Always `file_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "file_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "URL citation",
                                          "type": "object",
                                          "description": "A citation for a web resource used to generate a model response.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/UrlCitationBody",
                                            "canonical": "objects/UrlCitationBody",
                                            "label": "UrlCitationBody"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the URL citation. Always `url_citation`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "url_citation"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "url_citation"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "url_citation",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "url",
                                              "type": "string",
                                              "description": "The URL of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "start_index",
                                              "type": "integer",
                                              "description": "The index of the first character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "end_index",
                                              "type": "integer",
                                              "description": "The index of the last character of the URL citation in the message.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "title",
                                              "type": "string",
                                              "description": "The title of the web resource.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File path",
                                          "type": "object",
                                          "description": "A path to a file.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FilePath",
                                            "canonical": "objects/FilePath",
                                            "label": "FilePath"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the file path. Always `file_path`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_path"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_path",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The ID of the file.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "index",
                                              "type": "integer",
                                              "description": "The index of the file in the list of files.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/Annotation",
                                        "canonical": "objects/Annotation",
                                        "label": "Annotation"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/Annotation",
                                      "canonical": "objects/Annotation",
                                      "label": "Annotation"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "Refusal",
                                "type": "object",
                                "description": "A refusal from the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RefusalContent",
                                  "canonical": "objects/RefusalContent",
                                  "label": "RefusalContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the refusal. Always `refusal`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "refusal"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal explanationfrom the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/OutputContent",
                              "canonical": "objects/OutputContent",
                              "label": "OutputContent"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/OutputContent",
                            "canonical": "objects/OutputContent",
                            "label": "OutputContent"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "File search tool call",
                      "type": "object",
                      "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FileSearchToolCall",
                        "canonical": "objects/FileSearchToolCall",
                        "label": "FileSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the file search tool call. Always `file_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "queries",
                          "type": "$$array",
                          "description": "The queries used to search for files.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "results",
                          "type": "$$array",
                          "description": "The results of the file search tool call.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "The unique ID of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "The text that was retrieved from the file.\n",
                                "meta": []
                              },
                              {
                                "name": "filename",
                                "type": "string",
                                "description": "The name of the file.\n",
                                "meta": []
                              },
                              {
                                "name": "attributes",
                                "type": "object",
                                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/VectorStoreFileAttributes",
                                  "canonical": "objects/VectorStoreFileAttributes",
                                  "label": "VectorStoreFileAttributes"
                                }
                              },
                              {
                                "name": "score",
                                "type": "number",
                                "description": "The relevance score of the file - a value between 0 and 1.\n",
                                "meta": []
                              }
                            ],
                            "description": "",
                            "meta": []
                          }
                        }
                      ]
                    },
                    {
                      "name": "Function tool call",
                      "type": "object",
                      "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionToolCall",
                        "canonical": "objects/FunctionToolCall",
                        "label": "FunctionToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the function tool call.\n",
                          "meta": []
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the function tool call. Always `function_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "The unique ID of the function tool call generated by the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to run.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "A JSON string of the arguments to pass to the function.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Web search tool call",
                      "type": "object",
                      "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/WebSearchToolCall",
                        "canonical": "objects/WebSearchToolCall",
                        "label": "WebSearchToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the web search tool call. Always `web_search_call`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "web_search_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "web_search_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the web search tool call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "searching",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "failed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Computer tool call",
                      "type": "object",
                      "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCall",
                        "canonical": "objects/ComputerToolCall",
                        "label": "ComputerToolCall"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the computer call. Always `computer_call`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "computer_call"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "computer_call"
                            }
                          ],
                          "properties": [
                            {
                              "name": "computer_call",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique ID of the computer call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "call_id",
                          "type": "string",
                          "description": "An identifier used when responding to the tool call with output.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "action",
                          "type": "$$xor",
                          "description": "",
                          "properties": [
                            {
                              "name": "Click",
                              "type": "object",
                              "description": "A click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Click",
                                "canonical": "objects/Click",
                                "label": "Click"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "button",
                                  "type": "$$enum",
                                  "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "left",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "right",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "wheel",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "back",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "forward",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "DoubleClick",
                              "type": "object",
                              "description": "A double click action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/DoubleClick",
                                "canonical": "objects/DoubleClick",
                                "label": "DoubleClick"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "double_click"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "double_click"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "double_click",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the double click occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Drag",
                              "type": "object",
                              "description": "A drag action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Drag",
                                "canonical": "objects/Drag",
                                "label": "Drag"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "drag"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "drag"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "drag",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "path",
                                  "type": "$$array",
                                  "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "x",
                                        "type": "integer",
                                        "description": "The x-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "y",
                                        "type": "integer",
                                        "description": "The y-coordinate.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "A series of x/y coordinate pairs in the drag path.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "KeyPress",
                              "type": "object",
                              "description": "A collection of keypresses the model would like to perform.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/KeyPress",
                                "canonical": "objects/KeyPress",
                                "label": "KeyPress"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "keypress"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "keypress"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "keypress",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "keys",
                                  "type": "$$array",
                                  "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "string",
                                    "properties": [],
                                    "description": "One of the keys the model is requesting to be pressed.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Move",
                              "type": "object",
                              "description": "A mouse move action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Move",
                                "canonical": "objects/Move",
                                "label": "Move"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "move"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "move"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "move",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate to move to.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Screenshot",
                              "type": "object",
                              "description": "A screenshot action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Screenshot",
                                "canonical": "objects/Screenshot",
                                "label": "Screenshot"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "screenshot"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "screenshot"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "screenshot",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            },
                            {
                              "name": "Scroll",
                              "type": "object",
                              "description": "A scroll action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Scroll",
                                "canonical": "objects/Scroll",
                                "label": "Scroll"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "scroll"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "scroll"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "scroll",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate where the scroll occurred.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_x",
                                  "type": "integer",
                                  "description": "The horizontal scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "scroll_y",
                                  "type": "integer",
                                  "description": "The vertical scroll distance.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Type",
                              "type": "object",
                              "description": "An action to type in text.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Type",
                                "canonical": "objects/Type",
                                "label": "Type"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "type"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "type"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "The text to type.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Wait",
                              "type": "object",
                              "description": "A wait action.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/Wait",
                                "canonical": "objects/Wait",
                                "label": "Wait"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "wait"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "wait"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "wait",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerAction",
                            "canonical": "objects/ComputerAction",
                            "label": "ComputerAction"
                          }
                        },
                        {
                          "name": "pending_safety_checks",
                          "type": "$$array",
                          "description": "The pending safety checks for the computer call.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The ID of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "code",
                                "type": "string",
                                "description": "The type of the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "Details about the pending safety check.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "A pending safety check for the computer call.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                              "canonical": "objects/ComputerToolCallSafetyCheck",
                              "label": "ComputerToolCallSafetyCheck"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                            "canonical": "objects/ComputerToolCallSafetyCheck",
                            "label": "ComputerToolCallSafetyCheck"
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "Reasoning",
                      "type": "object",
                      "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ReasoningItem",
                        "canonical": "objects/ReasoningItem",
                        "label": "ReasoningItem"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `reasoning`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "reasoning"
                            }
                          ],
                          "properties": [
                            {
                              "name": "reasoning",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The unique identifier of the reasoning content.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "summary",
                          "type": "$$array",
                          "description": "Reasoning text contents.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the object. Always `summary_text`.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "summary_text"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "summary_text",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "status",
                          "type": "$$enum",
                          "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "in_progress",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "completed",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "incomplete",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/OutputItem",
                    "canonical": "objects/OutputItem",
                    "label": "OutputItem"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/OutputItem",
                  "canonical": "objects/OutputItem",
                  "label": "OutputItem"
                }
              },
              {
                "name": "output_text",
                "type": "string",
                "description": "SDK-only convenience property that contains the aggregated text output \nfrom all `output_text` items in the `output` array, if any are present. \nSupported in the Python and JavaScript SDKs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseUsage",
                  "canonical": "objects/ResponseUsage",
                  "label": "ResponseUsage"
                },
                "properties": [
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "input_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the input tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of tokens that were retrieved from the cache. \n[More on prompt caching](/docs/guides/prompt-caching).\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "output_tokens_details",
                    "type": "object",
                    "description": "A detailed breakdown of the output tokens.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning_tokens",
                        "type": "integer",
                        "description": "The number of reasoning tokens.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to allow the model to run tool calls in parallel.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": true
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseIncompleteEvent",
          "canonical": "objects/ResponseIncompleteEvent",
          "label": "ResponseIncompleteEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.incomplete\",\n  \"response\": {\n    \"id\": \"resp_123\",\n    \"object\": \"response\",\n    \"created_at\": 1740855869,\n    \"status\": \"incomplete\",\n    \"error\": null, \n    \"incomplete_details\": {\n      \"reason\": \"max_tokens\"\n    },\n    \"instructions\": null,\n    \"max_output_tokens\": null,\n    \"model\": \"gpt-4o-mini-2024-07-18\",\n    \"output\": [],\n    \"previous_response_id\": null,\n    \"reasoning_effort\": null,\n    \"store\": false,\n    \"temperature\": 1,\n    \"text\": {\n      \"format\": {\n        \"type\": \"text\"\n      }\n    },\n    \"tool_choice\": \"auto\",\n    \"tools\": [],\n    \"top_p\": 1,\n    \"truncation\": \"disabled\",\n    \"usage\": null,\n    \"user\": null,\n    \"metadata\": {}\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseIncompleteEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.output_item.added",
    "description": "Emitted when a new output item is added.",
    "canonical": "objects/ResponseOutputItemAddedEvent",
    "definitions": [
      {
        "title": "ResponseOutputItemAddedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.output_item.added`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_item.added"
              }
            ],
            "properties": [
              {
                "name": "response.output_item.added",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that was added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item",
            "type": "$$union",
            "description": "The output item that was added.\n",
            "properties": [
              {
                "name": "Output message",
                "type": "object",
                "description": "An output message from the model.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/OutputMessage",
                  "canonical": "objects/OutputMessage",
                  "label": "OutputMessage"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the output message.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the output message. Always `message`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "message"
                      }
                    ],
                    "properties": [
                      {
                        "name": "message",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "role",
                    "type": "$$enum",
                    "description": "The role of the output message. Always `assistant`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "assistant"
                      }
                    ],
                    "properties": [
                      {
                        "name": "assistant",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "content",
                    "type": "$$array",
                    "description": "The content of the output message.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "Output text",
                          "type": "object",
                          "description": "A text output from the model.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/OutputTextContent",
                            "canonical": "objects/OutputTextContent",
                            "label": "OutputTextContent"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the output text. Always `output_text`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "output_text"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "output_text"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "output_text",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "text",
                              "type": "string",
                              "description": "The text output from the model.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "annotations",
                              "type": "$$array",
                              "description": "The annotations of the text output.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "File citation",
                                    "type": "object",
                                    "description": "A citation to a file.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/FileCitationBody",
                                      "canonical": "objects/FileCitationBody",
                                      "label": "FileCitationBody"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the file citation. Always `file_citation`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "defaults",
                                            "value": "file_citation"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file_citation"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_citation",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the file.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "index",
                                        "type": "integer",
                                        "description": "The index of the file in the list of files.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "URL citation",
                                    "type": "object",
                                    "description": "A citation for a web resource used to generate a model response.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/UrlCitationBody",
                                      "canonical": "objects/UrlCitationBody",
                                      "label": "UrlCitationBody"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the URL citation. Always `url_citation`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "defaults",
                                            "value": "url_citation"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "url_citation"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "url_citation",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "url",
                                        "type": "string",
                                        "description": "The URL of the web resource.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "start_index",
                                        "type": "integer",
                                        "description": "The index of the first character of the URL citation in the message.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "end_index",
                                        "type": "integer",
                                        "description": "The index of the last character of the URL citation in the message.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "title",
                                        "type": "string",
                                        "description": "The title of the web resource.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "File path",
                                    "type": "object",
                                    "description": "A path to a file.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/FilePath",
                                      "canonical": "objects/FilePath",
                                      "label": "FilePath"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the file path. Always `file_path`.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file_path"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_path",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the file.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "index",
                                        "type": "integer",
                                        "description": "The index of the file in the list of files.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/Annotation",
                                  "canonical": "objects/Annotation",
                                  "label": "Annotation"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/Annotation",
                                "canonical": "objects/Annotation",
                                "label": "Annotation"
                              }
                            }
                          ]
                        },
                        {
                          "name": "Refusal",
                          "type": "object",
                          "description": "A refusal from the model.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/RefusalContent",
                            "canonical": "objects/RefusalContent",
                            "label": "RefusalContent"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the refusal. Always `refusal`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "refusal"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "refusal"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "refusal",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "refusal",
                              "type": "string",
                              "description": "The refusal explanationfrom the model.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputContent",
                        "canonical": "objects/OutputContent",
                        "label": "OutputContent"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/OutputContent",
                      "canonical": "objects/OutputContent",
                      "label": "OutputContent"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "File search tool call",
                "type": "object",
                "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/FileSearchToolCall",
                  "canonical": "objects/FileSearchToolCall",
                  "label": "FileSearchToolCall"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the file search tool call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the file search tool call. Always `file_search_call`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "file_search_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "file_search_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "searching",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "queries",
                    "type": "$$array",
                    "description": "The queries used to search for files.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  },
                  {
                    "name": "results",
                    "type": "$$array",
                    "description": "The results of the file search tool call.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "file_id",
                          "type": "string",
                          "description": "The unique ID of the file.\n",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "The text that was retrieved from the file.\n",
                          "meta": []
                        },
                        {
                          "name": "filename",
                          "type": "string",
                          "description": "The name of the file.\n",
                          "meta": []
                        },
                        {
                          "name": "attributes",
                          "type": "object",
                          "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/VectorStoreFileAttributes",
                            "canonical": "objects/VectorStoreFileAttributes",
                            "label": "VectorStoreFileAttributes"
                          }
                        },
                        {
                          "name": "score",
                          "type": "number",
                          "description": "The relevance score of the file - a value between 0 and 1.\n",
                          "meta": []
                        }
                      ],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              },
              {
                "name": "Function tool call",
                "type": "object",
                "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/FunctionToolCall",
                  "canonical": "objects/FunctionToolCall",
                  "label": "FunctionToolCall"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the function tool call.\n",
                    "meta": []
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the function tool call. Always `function_call`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "function_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "function_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "call_id",
                    "type": "string",
                    "description": "The unique ID of the function tool call generated by the model.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The name of the function to run.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "arguments",
                    "type": "string",
                    "description": "A JSON string of the arguments to pass to the function.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Web search tool call",
                "type": "object",
                "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/WebSearchToolCall",
                  "canonical": "objects/WebSearchToolCall",
                  "label": "WebSearchToolCall"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the web search tool call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the web search tool call. Always `web_search_call`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "web_search_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "web_search_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the web search tool call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "searching",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Computer tool call",
                "type": "object",
                "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ComputerToolCall",
                  "canonical": "objects/ComputerToolCall",
                  "label": "ComputerToolCall"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the computer call. Always `computer_call`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "computer_call"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "computer_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "computer_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the computer call.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "call_id",
                    "type": "string",
                    "description": "An identifier used when responding to the tool call with output.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "action",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "Click",
                        "type": "object",
                        "description": "A click action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Click",
                          "canonical": "objects/Click",
                          "label": "Click"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "click"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "click"
                              }
                            ],
                            "properties": [
                              {
                                "name": "click",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "button",
                            "type": "$$enum",
                            "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "left",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "right",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "wheel",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "back",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "forward",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate where the click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate where the click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "DoubleClick",
                        "type": "object",
                        "description": "A double click action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/DoubleClick",
                          "canonical": "objects/DoubleClick",
                          "label": "DoubleClick"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "double_click"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "double_click"
                              }
                            ],
                            "properties": [
                              {
                                "name": "double_click",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate where the double click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate where the double click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Drag",
                        "type": "object",
                        "description": "A drag action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Drag",
                          "canonical": "objects/Drag",
                          "label": "Drag"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "drag"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "drag"
                              }
                            ],
                            "properties": [
                              {
                                "name": "drag",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "path",
                            "type": "$$array",
                            "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ],
                              "description": "A series of x/y coordinate pairs in the drag path.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "KeyPress",
                        "type": "object",
                        "description": "A collection of keypresses the model would like to perform.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/KeyPress",
                          "canonical": "objects/KeyPress",
                          "label": "KeyPress"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "keypress"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "keypress"
                              }
                            ],
                            "properties": [
                              {
                                "name": "keypress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "keys",
                            "type": "$$array",
                            "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "string",
                              "properties": [],
                              "description": "One of the keys the model is requesting to be pressed.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "Move",
                        "type": "object",
                        "description": "A mouse move action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Move",
                          "canonical": "objects/Move",
                          "label": "Move"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "move"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "move"
                              }
                            ],
                            "properties": [
                              {
                                "name": "move",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate to move to.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate to move to.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Screenshot",
                        "type": "object",
                        "description": "A screenshot action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Screenshot",
                          "canonical": "objects/Screenshot",
                          "label": "Screenshot"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "screenshot"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "screenshot"
                              }
                            ],
                            "properties": [
                              {
                                "name": "screenshot",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "Scroll",
                        "type": "object",
                        "description": "A scroll action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Scroll",
                          "canonical": "objects/Scroll",
                          "label": "Scroll"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "scroll"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "scroll"
                              }
                            ],
                            "properties": [
                              {
                                "name": "scroll",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate where the scroll occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate where the scroll occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "scroll_x",
                            "type": "integer",
                            "description": "The horizontal scroll distance.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "scroll_y",
                            "type": "integer",
                            "description": "The vertical scroll distance.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Type",
                        "type": "object",
                        "description": "An action to type in text.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Type",
                          "canonical": "objects/Type",
                          "label": "Type"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "type"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "type"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text to type.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Wait",
                        "type": "object",
                        "description": "A wait action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Wait",
                          "canonical": "objects/Wait",
                          "label": "Wait"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "wait"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "wait"
                              }
                            ],
                            "properties": [
                              {
                                "name": "wait",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/ComputerAction",
                      "canonical": "objects/ComputerAction",
                      "label": "ComputerAction"
                    }
                  },
                  {
                    "name": "pending_safety_checks",
                    "type": "$$array",
                    "description": "The pending safety checks for the computer call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The ID of the pending safety check.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "code",
                          "type": "string",
                          "description": "The type of the pending safety check.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "message",
                          "type": "string",
                          "description": "Details about the pending safety check.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ],
                      "description": "A pending safety check for the computer call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                        "canonical": "objects/ComputerToolCallSafetyCheck",
                        "label": "ComputerToolCallSafetyCheck"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                      "canonical": "objects/ComputerToolCallSafetyCheck",
                      "label": "ComputerToolCallSafetyCheck"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Reasoning",
                "type": "object",
                "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningItem",
                  "canonical": "objects/ReasoningItem",
                  "label": "ReasoningItem"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the object. Always `reasoning`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "reasoning"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique identifier of the reasoning content.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "summary",
                    "type": "$$array",
                    "description": "Reasoning text contents.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `summary_text`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "summary_text"
                            }
                          ],
                          "properties": [
                            {
                              "name": "summary_text",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseOutputItemAddedEvent",
          "canonical": "objects/ResponseOutputItemAddedEvent",
          "label": "ResponseOutputItemAddedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.output_item.added\",\n  \"output_index\": 0,\n  \"item\": {\n    \"id\": \"msg_123\",\n    \"status\": \"in_progress\",\n    \"type\": \"message\",\n    \"role\": \"assistant\",\n    \"content\": []\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseOutputItemAddedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.output_item.done",
    "description": "Emitted when an output item is marked done.",
    "canonical": "objects/ResponseOutputItemDoneEvent",
    "definitions": [
      {
        "title": "ResponseOutputItemDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.output_item.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_item.done"
              }
            ],
            "properties": [
              {
                "name": "response.output_item.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that was marked done.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item",
            "type": "$$union",
            "description": "The output item that was marked done.\n",
            "properties": [
              {
                "name": "Output message",
                "type": "object",
                "description": "An output message from the model.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/OutputMessage",
                  "canonical": "objects/OutputMessage",
                  "label": "OutputMessage"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the output message.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the output message. Always `message`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "message"
                      }
                    ],
                    "properties": [
                      {
                        "name": "message",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "role",
                    "type": "$$enum",
                    "description": "The role of the output message. Always `assistant`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "assistant"
                      }
                    ],
                    "properties": [
                      {
                        "name": "assistant",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "content",
                    "type": "$$array",
                    "description": "The content of the output message.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "Output text",
                          "type": "object",
                          "description": "A text output from the model.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/OutputTextContent",
                            "canonical": "objects/OutputTextContent",
                            "label": "OutputTextContent"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the output text. Always `output_text`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "output_text"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "output_text"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "output_text",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "text",
                              "type": "string",
                              "description": "The text output from the model.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "annotations",
                              "type": "$$array",
                              "description": "The annotations of the text output.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "File citation",
                                    "type": "object",
                                    "description": "A citation to a file.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/FileCitationBody",
                                      "canonical": "objects/FileCitationBody",
                                      "label": "FileCitationBody"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the file citation. Always `file_citation`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "defaults",
                                            "value": "file_citation"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file_citation"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_citation",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the file.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "index",
                                        "type": "integer",
                                        "description": "The index of the file in the list of files.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "URL citation",
                                    "type": "object",
                                    "description": "A citation for a web resource used to generate a model response.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/UrlCitationBody",
                                      "canonical": "objects/UrlCitationBody",
                                      "label": "UrlCitationBody"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the URL citation. Always `url_citation`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "defaults",
                                            "value": "url_citation"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "url_citation"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "url_citation",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "url",
                                        "type": "string",
                                        "description": "The URL of the web resource.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "start_index",
                                        "type": "integer",
                                        "description": "The index of the first character of the URL citation in the message.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "end_index",
                                        "type": "integer",
                                        "description": "The index of the last character of the URL citation in the message.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "title",
                                        "type": "string",
                                        "description": "The title of the web resource.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "File path",
                                    "type": "object",
                                    "description": "A path to a file.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/FilePath",
                                      "canonical": "objects/FilePath",
                                      "label": "FilePath"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the file path. Always `file_path`.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file_path"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_path",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the file.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "index",
                                        "type": "integer",
                                        "description": "The index of the file in the list of files.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/Annotation",
                                  "canonical": "objects/Annotation",
                                  "label": "Annotation"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/Annotation",
                                "canonical": "objects/Annotation",
                                "label": "Annotation"
                              }
                            }
                          ]
                        },
                        {
                          "name": "Refusal",
                          "type": "object",
                          "description": "A refusal from the model.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/RefusalContent",
                            "canonical": "objects/RefusalContent",
                            "label": "RefusalContent"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the refusal. Always `refusal`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "refusal"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "refusal"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "refusal",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "refusal",
                              "type": "string",
                              "description": "The refusal explanationfrom the model.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/OutputContent",
                        "canonical": "objects/OutputContent",
                        "label": "OutputContent"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/OutputContent",
                      "canonical": "objects/OutputContent",
                      "label": "OutputContent"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the message input. One of `in_progress`, `completed`, or\n`incomplete`. Populated when input items are returned via API.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "File search tool call",
                "type": "object",
                "description": "The results of a file search tool call. See the \n[file search guide](/docs/guides/tools-file-search) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/FileSearchToolCall",
                  "canonical": "objects/FileSearchToolCall",
                  "label": "FileSearchToolCall"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the file search tool call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the file search tool call. Always `file_search_call`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "file_search_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "file_search_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "searching",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "queries",
                    "type": "$$array",
                    "description": "The queries used to search for files.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  },
                  {
                    "name": "results",
                    "type": "$$array",
                    "description": "The results of the file search tool call.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "file_id",
                          "type": "string",
                          "description": "The unique ID of the file.\n",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "The text that was retrieved from the file.\n",
                          "meta": []
                        },
                        {
                          "name": "filename",
                          "type": "string",
                          "description": "The name of the file.\n",
                          "meta": []
                        },
                        {
                          "name": "attributes",
                          "type": "object",
                          "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/VectorStoreFileAttributes",
                            "canonical": "objects/VectorStoreFileAttributes",
                            "label": "VectorStoreFileAttributes"
                          }
                        },
                        {
                          "name": "score",
                          "type": "number",
                          "description": "The relevance score of the file - a value between 0 and 1.\n",
                          "meta": []
                        }
                      ],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              },
              {
                "name": "Function tool call",
                "type": "object",
                "description": "A tool call to run a function. See the \n[function calling guide](/docs/guides/function-calling) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/FunctionToolCall",
                  "canonical": "objects/FunctionToolCall",
                  "label": "FunctionToolCall"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the function tool call.\n",
                    "meta": []
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the function tool call. Always `function_call`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "function_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "function_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "call_id",
                    "type": "string",
                    "description": "The unique ID of the function tool call generated by the model.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The name of the function to run.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "arguments",
                    "type": "string",
                    "description": "A JSON string of the arguments to pass to the function.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Web search tool call",
                "type": "object",
                "description": "The results of a web search tool call. See the \n[web search guide](/docs/guides/tools-web-search) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/WebSearchToolCall",
                  "canonical": "objects/WebSearchToolCall",
                  "label": "WebSearchToolCall"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the web search tool call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the web search tool call. Always `web_search_call`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "web_search_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "web_search_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the web search tool call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "searching",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Computer tool call",
                "type": "object",
                "description": "A tool call to a computer use tool. See the \n[computer use guide](/docs/guides/tools-computer-use) for more information.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ComputerToolCall",
                  "canonical": "objects/ComputerToolCall",
                  "label": "ComputerToolCall"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the computer call. Always `computer_call`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "computer_call"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "computer_call"
                      }
                    ],
                    "properties": [
                      {
                        "name": "computer_call",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique ID of the computer call.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "call_id",
                    "type": "string",
                    "description": "An identifier used when responding to the tool call with output.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "action",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "Click",
                        "type": "object",
                        "description": "A click action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Click",
                          "canonical": "objects/Click",
                          "label": "Click"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a click action, this property is \nalways set to `click`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "click"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "click"
                              }
                            ],
                            "properties": [
                              {
                                "name": "click",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "button",
                            "type": "$$enum",
                            "description": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "left",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "right",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "wheel",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "back",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "forward",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate where the click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate where the click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "DoubleClick",
                        "type": "object",
                        "description": "A double click action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/DoubleClick",
                          "canonical": "objects/DoubleClick",
                          "label": "DoubleClick"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a double click action, this property is \nalways set to `double_click`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "double_click"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "double_click"
                              }
                            ],
                            "properties": [
                              {
                                "name": "double_click",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate where the double click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate where the double click occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Drag",
                        "type": "object",
                        "description": "A drag action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Drag",
                          "canonical": "objects/Drag",
                          "label": "Drag"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a drag action, this property is \nalways set to `drag`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "drag"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "drag"
                              }
                            ],
                            "properties": [
                              {
                                "name": "drag",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "path",
                            "type": "$$array",
                            "description": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n  { x: 100, y: 200 },\n  { x: 200, y: 300 }\n]\n```\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "x",
                                  "type": "integer",
                                  "description": "The x-coordinate.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "y",
                                  "type": "integer",
                                  "description": "The y-coordinate.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ],
                              "description": "A series of x/y coordinate pairs in the drag path.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "KeyPress",
                        "type": "object",
                        "description": "A collection of keypresses the model would like to perform.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/KeyPress",
                          "canonical": "objects/KeyPress",
                          "label": "KeyPress"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a keypress action, this property is \nalways set to `keypress`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "keypress"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "keypress"
                              }
                            ],
                            "properties": [
                              {
                                "name": "keypress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "keys",
                            "type": "$$array",
                            "description": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "string",
                              "properties": [],
                              "description": "One of the keys the model is requesting to be pressed.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "Move",
                        "type": "object",
                        "description": "A mouse move action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Move",
                          "canonical": "objects/Move",
                          "label": "Move"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a move action, this property is \nalways set to `move`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "move"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "move"
                              }
                            ],
                            "properties": [
                              {
                                "name": "move",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate to move to.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate to move to.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Screenshot",
                        "type": "object",
                        "description": "A screenshot action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Screenshot",
                          "canonical": "objects/Screenshot",
                          "label": "Screenshot"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a screenshot action, this property is \nalways set to `screenshot`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "screenshot"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "screenshot"
                              }
                            ],
                            "properties": [
                              {
                                "name": "screenshot",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "Scroll",
                        "type": "object",
                        "description": "A scroll action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Scroll",
                          "canonical": "objects/Scroll",
                          "label": "Scroll"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a scroll action, this property is \nalways set to `scroll`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "scroll"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "scroll"
                              }
                            ],
                            "properties": [
                              {
                                "name": "scroll",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "x",
                            "type": "integer",
                            "description": "The x-coordinate where the scroll occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "y",
                            "type": "integer",
                            "description": "The y-coordinate where the scroll occurred.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "scroll_x",
                            "type": "integer",
                            "description": "The horizontal scroll distance.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "scroll_y",
                            "type": "integer",
                            "description": "The vertical scroll distance.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Type",
                        "type": "object",
                        "description": "An action to type in text.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Type",
                          "canonical": "objects/Type",
                          "label": "Type"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a type action, this property is \nalways set to `type`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "type"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "type"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text to type.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "Wait",
                        "type": "object",
                        "description": "A wait action.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/Wait",
                          "canonical": "objects/Wait",
                          "label": "Wait"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "Specifies the event type. For a wait action, this property is \nalways set to `wait`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "wait"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "wait"
                              }
                            ],
                            "properties": [
                              {
                                "name": "wait",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/ComputerAction",
                      "canonical": "objects/ComputerAction",
                      "label": "ComputerAction"
                    }
                  },
                  {
                    "name": "pending_safety_checks",
                    "type": "$$array",
                    "description": "The pending safety checks for the computer call.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The ID of the pending safety check.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "code",
                          "type": "string",
                          "description": "The type of the pending safety check.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "message",
                          "type": "string",
                          "description": "Details about the pending safety check.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ],
                      "description": "A pending safety check for the computer call.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                        "canonical": "objects/ComputerToolCallSafetyCheck",
                        "label": "ComputerToolCallSafetyCheck"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/ComputerToolCallSafetyCheck",
                      "canonical": "objects/ComputerToolCallSafetyCheck",
                      "label": "ComputerToolCallSafetyCheck"
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "Reasoning",
                "type": "object",
                "description": "A description of the chain of thought used by a reasoning model while generating\na response.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningItem",
                  "canonical": "objects/ReasoningItem",
                  "label": "ReasoningItem"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the object. Always `reasoning`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "reasoning"
                      }
                    ],
                    "properties": [
                      {
                        "name": "reasoning",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The unique identifier of the reasoning content.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "summary",
                    "type": "$$array",
                    "description": "Reasoning text contents.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the object. Always `summary_text`.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "summary_text"
                            }
                          ],
                          "properties": [
                            {
                              "name": "summary_text",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "A short summary of the reasoning used by the model when generating\nthe response.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  },
                  {
                    "name": "status",
                    "type": "$$enum",
                    "description": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "in_progress",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseOutputItemDoneEvent",
          "canonical": "objects/ResponseOutputItemDoneEvent",
          "label": "ResponseOutputItemDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.output_item.done\",\n  \"output_index\": 0,\n  \"item\": {\n    \"id\": \"msg_123\",\n    \"status\": \"completed\",\n    \"type\": \"message\",\n    \"role\": \"assistant\",\n    \"content\": [\n      {\n        \"type\": \"output_text\",\n        \"text\": \"In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.\",\n        \"annotations\": []\n      }\n    ]\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseOutputItemDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.content_part.added",
    "description": "Emitted when a new content part is added.",
    "canonical": "objects/ResponseContentPartAddedEvent",
    "definitions": [
      {
        "title": "ResponseContentPartAddedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.content_part.added`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.content_part.added"
              }
            ],
            "properties": [
              {
                "name": "response.content_part.added",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the content part was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the content part was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that was added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "part",
            "type": "$$xor",
            "description": "The content part that was added.\n",
            "properties": [
              {
                "name": "Output text",
                "type": "object",
                "description": "A text output from the model.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/OutputTextContent",
                  "canonical": "objects/OutputTextContent",
                  "label": "OutputTextContent"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the output text. Always `output_text`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "output_text"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "output_text"
                      }
                    ],
                    "properties": [
                      {
                        "name": "output_text",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "text",
                    "type": "string",
                    "description": "The text output from the model.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "annotations",
                    "type": "$$array",
                    "description": "The annotations of the text output.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "File citation",
                          "type": "object",
                          "description": "A citation to a file.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FileCitationBody",
                            "canonical": "objects/FileCitationBody",
                            "label": "FileCitationBody"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the file citation. Always `file_citation`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "file_citation"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "file_citation"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "file_citation",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "file_id",
                              "type": "string",
                              "description": "The ID of the file.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "index",
                              "type": "integer",
                              "description": "The index of the file in the list of files.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "URL citation",
                          "type": "object",
                          "description": "A citation for a web resource used to generate a model response.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/UrlCitationBody",
                            "canonical": "objects/UrlCitationBody",
                            "label": "UrlCitationBody"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the URL citation. Always `url_citation`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "url_citation"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "url_citation"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "url_citation",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "url",
                              "type": "string",
                              "description": "The URL of the web resource.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "start_index",
                              "type": "integer",
                              "description": "The index of the first character of the URL citation in the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "end_index",
                              "type": "integer",
                              "description": "The index of the last character of the URL citation in the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "title",
                              "type": "string",
                              "description": "The title of the web resource.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "File path",
                          "type": "object",
                          "description": "A path to a file.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FilePath",
                            "canonical": "objects/FilePath",
                            "label": "FilePath"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the file path. Always `file_path`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "file_path"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "file_path",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "file_id",
                              "type": "string",
                              "description": "The ID of the file.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "index",
                              "type": "integer",
                              "description": "The index of the file in the list of files.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/Annotation",
                        "canonical": "objects/Annotation",
                        "label": "Annotation"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/Annotation",
                      "canonical": "objects/Annotation",
                      "label": "Annotation"
                    }
                  }
                ]
              },
              {
                "name": "Refusal",
                "type": "object",
                "description": "A refusal from the model.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/RefusalContent",
                  "canonical": "objects/RefusalContent",
                  "label": "RefusalContent"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the refusal. Always `refusal`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "refusal"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "refusal"
                      }
                    ],
                    "properties": [
                      {
                        "name": "refusal",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "refusal",
                    "type": "string",
                    "description": "The refusal explanationfrom the model.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseContentPartAddedEvent",
          "canonical": "objects/ResponseContentPartAddedEvent",
          "label": "ResponseContentPartAddedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.content_part.added\",\n  \"item_id\": \"msg_123\",\n  \"output_index\": 0,\n  \"content_index\": 0,\n  \"part\": {\n    \"type\": \"output_text\",\n    \"text\": \"\",\n    \"annotations\": []\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseContentPartAddedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.content_part.done",
    "description": "Emitted when a content part is done.",
    "canonical": "objects/ResponseContentPartDoneEvent",
    "definitions": [
      {
        "title": "ResponseContentPartDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.content_part.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.content_part.done"
              }
            ],
            "properties": [
              {
                "name": "response.content_part.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the content part was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the content part was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that is done.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "part",
            "type": "$$xor",
            "description": "The content part that is done.\n",
            "properties": [
              {
                "name": "Output text",
                "type": "object",
                "description": "A text output from the model.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/OutputTextContent",
                  "canonical": "objects/OutputTextContent",
                  "label": "OutputTextContent"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the output text. Always `output_text`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "output_text"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "output_text"
                      }
                    ],
                    "properties": [
                      {
                        "name": "output_text",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "text",
                    "type": "string",
                    "description": "The text output from the model.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "annotations",
                    "type": "$$array",
                    "description": "The annotations of the text output.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "File citation",
                          "type": "object",
                          "description": "A citation to a file.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FileCitationBody",
                            "canonical": "objects/FileCitationBody",
                            "label": "FileCitationBody"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the file citation. Always `file_citation`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "file_citation"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "file_citation"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "file_citation",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "file_id",
                              "type": "string",
                              "description": "The ID of the file.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "index",
                              "type": "integer",
                              "description": "The index of the file in the list of files.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "URL citation",
                          "type": "object",
                          "description": "A citation for a web resource used to generate a model response.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/UrlCitationBody",
                            "canonical": "objects/UrlCitationBody",
                            "label": "UrlCitationBody"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the URL citation. Always `url_citation`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "defaults",
                                  "value": "url_citation"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "url_citation"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "url_citation",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "url",
                              "type": "string",
                              "description": "The URL of the web resource.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "start_index",
                              "type": "integer",
                              "description": "The index of the first character of the URL citation in the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "end_index",
                              "type": "integer",
                              "description": "The index of the last character of the URL citation in the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "title",
                              "type": "string",
                              "description": "The title of the web resource.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "File path",
                          "type": "object",
                          "description": "A path to a file.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FilePath",
                            "canonical": "objects/FilePath",
                            "label": "FilePath"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the file path. Always `file_path`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "file_path"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "file_path",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "file_id",
                              "type": "string",
                              "description": "The ID of the file.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "index",
                              "type": "integer",
                              "description": "The index of the file in the list of files.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/Annotation",
                        "canonical": "objects/Annotation",
                        "label": "Annotation"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/Annotation",
                      "canonical": "objects/Annotation",
                      "label": "Annotation"
                    }
                  }
                ]
              },
              {
                "name": "Refusal",
                "type": "object",
                "description": "A refusal from the model.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/RefusalContent",
                  "canonical": "objects/RefusalContent",
                  "label": "RefusalContent"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the refusal. Always `refusal`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "refusal"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "refusal"
                      }
                    ],
                    "properties": [
                      {
                        "name": "refusal",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "refusal",
                    "type": "string",
                    "description": "The refusal explanationfrom the model.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseContentPartDoneEvent",
          "canonical": "objects/ResponseContentPartDoneEvent",
          "label": "ResponseContentPartDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.content_part.done\",\n  \"item_id\": \"msg_123\",\n  \"output_index\": 0,\n  \"content_index\": 0,\n  \"part\": {\n    \"type\": \"output_text\",\n    \"text\": \"In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.\",\n    \"annotations\": []\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseContentPartDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.output_text.delta",
    "description": "Emitted when there is an additional text delta.",
    "canonical": "objects/ResponseTextDeltaEvent",
    "definitions": [
      {
        "title": "ResponseTextDeltaEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.output_text.delta`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_text.delta"
              }
            ],
            "properties": [
              {
                "name": "response.output_text.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the text delta was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the text delta was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that the text delta was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The text delta that was added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseTextDeltaEvent",
          "canonical": "objects/ResponseTextDeltaEvent",
          "label": "ResponseTextDeltaEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.output_text.delta\",\n  \"item_id\": \"msg_123\",\n  \"output_index\": 0,\n  \"content_index\": 0,\n  \"delta\": \"In\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseTextDeltaEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.output_text.annotation.added",
    "description": "Emitted when a text annotation is added.",
    "canonical": "objects/ResponseTextAnnotationDeltaEvent",
    "definitions": [
      {
        "title": "ResponseTextAnnotationDeltaEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.output_text.annotation.added`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_text.annotation.added"
              }
            ],
            "properties": [
              {
                "name": "response.output_text.annotation.added",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the text annotation was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the text annotation was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that the text annotation was added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "annotation_index",
            "type": "integer",
            "description": "The index of the annotation that was added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "annotation",
            "type": "$$xor",
            "description": "",
            "properties": [
              {
                "name": "File citation",
                "type": "object",
                "description": "A citation to a file.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/FileCitationBody",
                  "canonical": "objects/FileCitationBody",
                  "label": "FileCitationBody"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the file citation. Always `file_citation`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "file_citation"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "file_citation"
                      }
                    ],
                    "properties": [
                      {
                        "name": "file_citation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "file_id",
                    "type": "string",
                    "description": "The ID of the file.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "index",
                    "type": "integer",
                    "description": "The index of the file in the list of files.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "URL citation",
                "type": "object",
                "description": "A citation for a web resource used to generate a model response.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/UrlCitationBody",
                  "canonical": "objects/UrlCitationBody",
                  "label": "UrlCitationBody"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the URL citation. Always `url_citation`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "url_citation"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "url_citation"
                      }
                    ],
                    "properties": [
                      {
                        "name": "url_citation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "url",
                    "type": "string",
                    "description": "The URL of the web resource.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "start_index",
                    "type": "integer",
                    "description": "The index of the first character of the URL citation in the message.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "end_index",
                    "type": "integer",
                    "description": "The index of the last character of the URL citation in the message.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "title",
                    "type": "string",
                    "description": "The title of the web resource.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "File path",
                "type": "object",
                "description": "A path to a file.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/FilePath",
                  "canonical": "objects/FilePath",
                  "label": "FilePath"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of the file path. Always `file_path`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "file_path"
                      }
                    ],
                    "properties": [
                      {
                        "name": "file_path",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "file_id",
                    "type": "string",
                    "description": "The ID of the file.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "index",
                    "type": "integer",
                    "description": "The index of the file in the list of files.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Annotation",
              "canonical": "objects/Annotation",
              "label": "Annotation"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseTextAnnotationDeltaEvent",
          "canonical": "objects/ResponseTextAnnotationDeltaEvent",
          "label": "ResponseTextAnnotationDeltaEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.output_text.annotation.added\",\n  \"item_id\": \"msg_abc123\",\n  \"output_index\": 1,\n  \"content_index\": 0,\n  \"annotation_index\": 0,\n  \"annotation\": {\n    \"type\": \"file_citation\",\n    \"index\": 390,\n    \"file_id\": \"file-4wDz5b167pAf72nx1h9eiN\",\n    \"filename\": \"dragons.pdf\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseTextAnnotationDeltaEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.output_text.done",
    "description": "Emitted when text content is finalized.",
    "canonical": "objects/ResponseTextDoneEvent",
    "definitions": [
      {
        "title": "ResponseTextDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.output_text.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_text.done"
              }
            ],
            "properties": [
              {
                "name": "response.output_text.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the text content is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the text content is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that the text content is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "text",
            "type": "string",
            "description": "The text content that is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseTextDoneEvent",
          "canonical": "objects/ResponseTextDoneEvent",
          "label": "ResponseTextDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.output_text.done\",\n  \"item_id\": \"msg_123\",\n  \"output_index\": 0,\n  \"content_index\": 0,\n  \"text\": \"In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseTextDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.refusal.delta",
    "description": "Emitted when there is a partial refusal text.",
    "canonical": "objects/ResponseRefusalDeltaEvent",
    "definitions": [
      {
        "title": "ResponseRefusalDeltaEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.refusal.delta`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.refusal.delta"
              }
            ],
            "properties": [
              {
                "name": "response.refusal.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the refusal text is added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the refusal text is added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that the refusal text is added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The refusal text that is added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseRefusalDeltaEvent",
          "canonical": "objects/ResponseRefusalDeltaEvent",
          "label": "ResponseRefusalDeltaEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.refusal.delta\",\n  \"item_id\": \"msg_123\",\n  \"output_index\": 0,\n  \"content_index\": 0,\n  \"delta\": \"refusal text so far\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseRefusalDeltaEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.refusal.done",
    "description": "Emitted when refusal text is finalized.",
    "canonical": "objects/ResponseRefusalDoneEvent",
    "definitions": [
      {
        "title": "ResponseRefusalDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.refusal.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.refusal.done"
              }
            ],
            "properties": [
              {
                "name": "response.refusal.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the refusal text is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the refusal text is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that the refusal text is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "refusal",
            "type": "string",
            "description": "The refusal text that is finalized.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseRefusalDoneEvent",
          "canonical": "objects/ResponseRefusalDoneEvent",
          "label": "ResponseRefusalDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.refusal.done\",\n  \"item_id\": \"item-abc\",\n  \"output_index\": 1,\n  \"content_index\": 2,\n  \"refusal\": \"final refusal text\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseRefusalDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.function_call_arguments.delta",
    "description": "Emitted when there is a partial function-call arguments delta.",
    "canonical": "objects/ResponseFunctionCallArgumentsDeltaEvent",
    "definitions": [
      {
        "title": "ResponseFunctionCallArgumentsDeltaEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.function_call_arguments.delta`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.function_call_arguments.delta"
              }
            ],
            "properties": [
              {
                "name": "response.function_call_arguments.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the function-call arguments delta is added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the function-call arguments delta is added to.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The function-call arguments delta that is added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseFunctionCallArgumentsDeltaEvent",
          "canonical": "objects/ResponseFunctionCallArgumentsDeltaEvent",
          "label": "ResponseFunctionCallArgumentsDeltaEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.function_call_arguments.delta\",\n  \"item_id\": \"item-abc\",\n  \"output_index\": 0,\n  \"delta\": \"{ \\\"arg\\\":\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseFunctionCallArgumentsDeltaEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.function_call_arguments.done",
    "description": "Emitted when function-call arguments are finalized.",
    "canonical": "objects/ResponseFunctionCallArgumentsDoneEvent",
    "definitions": [
      {
        "title": "ResponseFunctionCallArgumentsDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.function_call_arguments.done"
              }
            ],
            "properties": [
              {
                "name": "response.function_call_arguments.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "arguments",
            "type": "string",
            "description": "The function-call arguments.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseFunctionCallArgumentsDoneEvent",
          "canonical": "objects/ResponseFunctionCallArgumentsDoneEvent",
          "label": "ResponseFunctionCallArgumentsDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.function_call_arguments.done\",\n  \"item_id\": \"item-abc\",\n  \"output_index\": 1,\n  \"arguments\": \"{ \\\"arg\\\": 123 }\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseFunctionCallArgumentsDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.file_search_call.in_progress",
    "description": "Emitted when a file search call is initiated.",
    "canonical": "objects/ResponseFileSearchCallInProgressEvent",
    "definitions": [
      {
        "title": "ResponseFileSearchCallInProgressEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.file_search_call.in_progress`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.file_search_call.in_progress"
              }
            ],
            "properties": [
              {
                "name": "response.file_search_call.in_progress",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the file search call is initiated.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the file search call is initiated.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseFileSearchCallInProgressEvent",
          "canonical": "objects/ResponseFileSearchCallInProgressEvent",
          "label": "ResponseFileSearchCallInProgressEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.file_search_call.in_progress\",\n  \"output_index\": 0,\n  \"item_id\": \"fs_123\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseFileSearchCallInProgressEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.file_search_call.searching",
    "description": "Emitted when a file search is currently searching.",
    "canonical": "objects/ResponseFileSearchCallSearchingEvent",
    "definitions": [
      {
        "title": "ResponseFileSearchCallSearchingEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.file_search_call.searching`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.file_search_call.searching"
              }
            ],
            "properties": [
              {
                "name": "response.file_search_call.searching",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the file search call is searching.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the file search call is initiated.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseFileSearchCallSearchingEvent",
          "canonical": "objects/ResponseFileSearchCallSearchingEvent",
          "label": "ResponseFileSearchCallSearchingEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.file_search_call.searching\",\n  \"output_index\": 0,\n  \"item_id\": \"fs_123\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseFileSearchCallSearchingEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.file_search_call.completed",
    "description": "Emitted when a file search call is completed (results found).",
    "canonical": "objects/ResponseFileSearchCallCompletedEvent",
    "definitions": [
      {
        "title": "ResponseFileSearchCallCompletedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.file_search_call.completed`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.file_search_call.completed"
              }
            ],
            "properties": [
              {
                "name": "response.file_search_call.completed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the file search call is initiated.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the output item that the file search call is initiated.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseFileSearchCallCompletedEvent",
          "canonical": "objects/ResponseFileSearchCallCompletedEvent",
          "label": "ResponseFileSearchCallCompletedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.file_search_call.completed\",\n  \"output_index\": 0,\n  \"item_id\": \"fs_123\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseFileSearchCallCompletedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.web_search_call.in_progress",
    "description": "Emitted when a web search call is initiated.",
    "canonical": "objects/ResponseWebSearchCallInProgressEvent",
    "definitions": [
      {
        "title": "ResponseWebSearchCallInProgressEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.web_search_call.in_progress`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.web_search_call.in_progress"
              }
            ],
            "properties": [
              {
                "name": "response.web_search_call.in_progress",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the web search call is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "Unique ID for the output item associated with the web search call.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseWebSearchCallInProgressEvent",
          "canonical": "objects/ResponseWebSearchCallInProgressEvent",
          "label": "ResponseWebSearchCallInProgressEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.web_search_call.in_progress\",\n  \"output_index\": 0,\n  \"item_id\": \"ws_123\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseWebSearchCallInProgressEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.web_search_call.searching",
    "description": "Emitted when a web search call is executing.",
    "canonical": "objects/ResponseWebSearchCallSearchingEvent",
    "definitions": [
      {
        "title": "ResponseWebSearchCallSearchingEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.web_search_call.searching`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.web_search_call.searching"
              }
            ],
            "properties": [
              {
                "name": "response.web_search_call.searching",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the web search call is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "Unique ID for the output item associated with the web search call.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseWebSearchCallSearchingEvent",
          "canonical": "objects/ResponseWebSearchCallSearchingEvent",
          "label": "ResponseWebSearchCallSearchingEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.web_search_call.searching\",\n  \"output_index\": 0,\n  \"item_id\": \"ws_123\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseWebSearchCallSearchingEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.web_search_call.completed",
    "description": "Emitted when a web search call is completed.",
    "canonical": "objects/ResponseWebSearchCallCompletedEvent",
    "definitions": [
      {
        "title": "ResponseWebSearchCallCompletedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.web_search_call.completed`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.web_search_call.completed"
              }
            ],
            "properties": [
              {
                "name": "response.web_search_call.completed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item that the web search call is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "Unique ID for the output item associated with the web search call.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseWebSearchCallCompletedEvent",
          "canonical": "objects/ResponseWebSearchCallCompletedEvent",
          "label": "ResponseWebSearchCallCompletedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.web_search_call.completed\",\n  \"output_index\": 0,\n  \"item_id\": \"ws_123\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseWebSearchCallCompletedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.reasoning_summary_part.added",
    "description": "Emitted when a new reasoning summary part is added.",
    "canonical": "objects/ResponseReasoningSummaryPartAddedEvent",
    "definitions": [
      {
        "title": "ResponseReasoningSummaryPartAddedEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.reasoning_summary_part.added`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.reasoning_summary_part.added"
              }
            ],
            "properties": [
              {
                "name": "response.reasoning_summary_part.added",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item this summary part is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item this summary part is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "summary_index",
            "type": "integer",
            "description": "The index of the summary part within the reasoning summary.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "part",
            "type": "object",
            "description": "The summary part that was added.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the summary part. Always `summary_text`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "summary_text"
                  }
                ],
                "properties": [
                  {
                    "name": "summary_text",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "text",
                "type": "string",
                "description": "The text of the summary part.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseReasoningSummaryPartAddedEvent",
          "canonical": "objects/ResponseReasoningSummaryPartAddedEvent",
          "label": "ResponseReasoningSummaryPartAddedEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.reasoning_summary_part.added\",\n  \"item_id\": \"rs_6806bfca0b2481918a5748308061a2600d3ce51bdffd5476\",\n  \"output_index\": 0,\n  \"summary_index\": 0,\n  \"part\": {\n    \"type\": \"summary_text\",\n    \"text\": \"\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseReasoningSummaryPartAddedEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.reasoning_summary_part.done",
    "description": "Emitted when a reasoning summary part is completed.",
    "canonical": "objects/ResponseReasoningSummaryPartDoneEvent",
    "definitions": [
      {
        "title": "ResponseReasoningSummaryPartDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.reasoning_summary_part.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.reasoning_summary_part.done"
              }
            ],
            "properties": [
              {
                "name": "response.reasoning_summary_part.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item this summary part is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item this summary part is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "summary_index",
            "type": "integer",
            "description": "The index of the summary part within the reasoning summary.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "part",
            "type": "object",
            "description": "The completed summary part.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the summary part. Always `summary_text`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "summary_text"
                  }
                ],
                "properties": [
                  {
                    "name": "summary_text",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "text",
                "type": "string",
                "description": "The text of the summary part.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseReasoningSummaryPartDoneEvent",
          "canonical": "objects/ResponseReasoningSummaryPartDoneEvent",
          "label": "ResponseReasoningSummaryPartDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.reasoning_summary_part.done\",\n  \"item_id\": \"rs_6806bfca0b2481918a5748308061a2600d3ce51bdffd5476\",\n  \"output_index\": 0,\n  \"summary_index\": 0,\n  \"part\": {\n    \"type\": \"summary_text\",\n    \"text\": \"**Responding to a greeting**\\n\\nThe user just said, \\\"Hello!\\\" So, it seems I need to engage. I'll greet them back and offer help since they're looking to chat. I could say something like, \\\"Hello! How can I assist you today?\\\" That feels friendly and open. They didn't ask a specific question, so this approach will work well for starting a conversation. Let's see where it goes from there!\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseReasoningSummaryPartDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.reasoning_summary_text.delta",
    "description": "Emitted when a delta is added to a reasoning summary text.",
    "canonical": "objects/ResponseReasoningSummaryTextDeltaEvent",
    "definitions": [
      {
        "title": "ResponseReasoningSummaryTextDeltaEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.reasoning_summary_text.delta`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.reasoning_summary_text.delta"
              }
            ],
            "properties": [
              {
                "name": "response.reasoning_summary_text.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item this summary text delta is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item this summary text delta is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "summary_index",
            "type": "integer",
            "description": "The index of the summary part within the reasoning summary.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The text delta that was added to the summary.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseReasoningSummaryTextDeltaEvent",
          "canonical": "objects/ResponseReasoningSummaryTextDeltaEvent",
          "label": "ResponseReasoningSummaryTextDeltaEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.reasoning_summary_text.delta\",\n  \"item_id\": \"rs_6806bfca0b2481918a5748308061a2600d3ce51bdffd5476\",\n  \"output_index\": 0,\n  \"summary_index\": 0,\n  \"delta\": \"**Respond\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseReasoningSummaryTextDeltaEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "response.reasoning_summary_text.done",
    "description": "Emitted when a reasoning summary text is completed.",
    "canonical": "objects/ResponseReasoningSummaryTextDoneEvent",
    "definitions": [
      {
        "title": "ResponseReasoningSummaryTextDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `response.reasoning_summary_text.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.reasoning_summary_text.done"
              }
            ],
            "properties": [
              {
                "name": "response.reasoning_summary_text.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item this summary text is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item this summary text is associated with.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "summary_index",
            "type": "integer",
            "description": "The index of the summary part within the reasoning summary.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "text",
            "type": "string",
            "description": "The full text of the completed reasoning summary.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseReasoningSummaryTextDoneEvent",
          "canonical": "objects/ResponseReasoningSummaryTextDoneEvent",
          "label": "ResponseReasoningSummaryTextDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"response.reasoning_summary_text.done\",\n  \"item_id\": \"rs_6806bfca0b2481918a5748308061a2600d3ce51bdffd5476\",\n  \"output_index\": 0,\n  \"summary_index\": 0,\n  \"text\": \"**Responding to a greeting**\\n\\nThe user just said, \\\"Hello!\\\" So, it seems I need to engage. I'll greet them back and offer help since they're looking to chat. I could say something like, \\\"Hello! How can I assist you today?\\\" That feels friendly and open. They didn't ask a specific question, so this approach will work well for starting a conversation. Let's see where it goes from there!\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseReasoningSummaryTextDoneEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "error",
    "description": "Emitted when an error occurs.",
    "canonical": "objects/ResponseErrorEvent",
    "definitions": [
      {
        "title": "ResponseErrorEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `error`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "error"
              }
            ],
            "properties": [
              {
                "name": "error",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "code",
            "type": "string",
            "description": "The error code.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "message",
            "type": "string",
            "description": "The error message.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "param",
            "type": "string",
            "description": "The error parameter.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ResponseErrorEvent",
          "canonical": "objects/ResponseErrorEvent",
          "label": "ResponseErrorEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"error\",\n  \"code\": \"ERR_SOMETHING\",\n  \"message\": \"Something went wrong\",\n  \"param\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ResponseErrorEvent",
      "group": [
        "Responses",
        "Streaming"
      ]
    }
  },
  {
    "title": "Create chat completion",
    "canonical": "chat/create",
    "description": "**Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses) \nto take advantage of the latest OpenAI platform features. Compare\n[Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).\n\n---\n\nCreates a model response for the given chat conversation. Learn more in the\n[text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),\nand [audio](/docs/guides/audio) guides.\n\nParameter support can differ depending on the model used to generate the\nresponse, particularly for newer reasoning models. Parameters that are only\nsupported for reasoning models are noted below. For the current state of \nunsupported parameters in reasoning models, \n[refer to the reasoning guide](/docs/guides/reasoning).\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/chat/completions",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ],
      "fullPath": "https://api.openai.com/v1/chat/completions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"VAR_chat_model_id\",\n    \"messages\": [\n      {\n        \"role\": \"developer\",\n        \"content\": \"You are a helpful assistant.\"\n      },\n      {\n        \"role\": \"user\",\n        \"content\": \"Hello!\"\n      }\n    ]\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletion = client.chat.completions.create(\n  model=\"VAR_chat_model_id\",\n  messages=[\n    {\"role\": \"developer\", \"content\": \"You are a helpful assistant.\"},\n    {\"role\": \"user\", \"content\": \"Hello!\"}\n  ]\n)\n\nprint(completion.choices[0].message)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const completion = await openai.chat.completions.create({\n    messages: [{ role: \"developer\", content: \"You are a helpful assistant.\" }],\n    model: \"VAR_chat_model_id\",\n    store: true,\n  });\n\n  console.log(completion.choices[0]);\n}\n\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.Collections.Generic;\n\nusing OpenAI.Chat;\n\nChatClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nList<ChatMessage> messages =\n[\n    new SystemChatMessage(\"You are a helpful assistant.\"),\n    new UserChatMessage(\"Hello!\")\n];\n\nChatCompletion completion = client.CompleteChat(messages);\n\nConsole.WriteLine(completion.Content[0].Text);\n"
                  }
                ]
              }
            },
            {
              "description": "Image input",
              "codeblock": {
                "title": "Image input",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-4.1\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": [\n          {\n            \"type\": \"text\",\n            \"text\": \"What is in this image?\"\n          },\n          {\n            \"type\": \"image_url\",\n            \"image_url\": {\n              \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"\n            }\n          }\n        ]\n      }\n    ],\n    \"max_tokens\": 300\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\n\nclient = OpenAI()\n\nresponse = client.chat.completions.create(\n    model=\"gpt-4.1\",\n    messages=[\n        {\n            \"role\": \"user\",\n            \"content\": [\n                {\"type\": \"text\", \"text\": \"What's in this image?\"},\n                {\n                    \"type\": \"image_url\",\n                    \"image_url\": {\n                        \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n                    }\n                },\n            ],\n        }\n    ],\n    max_tokens=300,\n)\n\nprint(response.choices[0])\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const response = await openai.chat.completions.create({\n    model: \"gpt-4.1\",\n    messages: [\n      {\n        role: \"user\",\n        content: [\n          { type: \"text\", text: \"What's in this image?\" },\n          {\n            type: \"image_url\",\n            image_url: {\n              \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n            },\n          }\n        ],\n      },\n    ],\n  });\n  console.log(response.choices[0]);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.Collections.Generic;\n\nusing OpenAI.Chat;\n\nChatClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nList<ChatMessage> messages =\n[\n    new UserChatMessage(\n    [\n        ChatMessageContentPart.CreateTextPart(\"What's in this image?\"),\n        ChatMessageContentPart.CreateImagePart(new Uri(\"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"))\n    ])\n];\n\nChatCompletion completion = client.CompleteChat(messages);\n\nConsole.WriteLine(completion.Content[0].Text);\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"VAR_chat_model_id\",\n    \"messages\": [\n      {\n        \"role\": \"developer\",\n        \"content\": \"You are a helpful assistant.\"\n      },\n      {\n        \"role\": \"user\",\n        \"content\": \"Hello!\"\n      }\n    ],\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletion = client.chat.completions.create(\n  model=\"VAR_chat_model_id\",\n  messages=[\n    {\"role\": \"developer\", \"content\": \"You are a helpful assistant.\"},\n    {\"role\": \"user\", \"content\": \"Hello!\"}\n  ],\n  stream=True\n)\n\nfor chunk in completion:\n  print(chunk.choices[0].delta)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const completion = await openai.chat.completions.create({\n    model: \"VAR_chat_model_id\",\n    messages: [\n      {\"role\": \"developer\", \"content\": \"You are a helpful assistant.\"},\n      {\"role\": \"user\", \"content\": \"Hello!\"}\n    ],\n    stream: true,\n  });\n\n  for await (const chunk of completion) {\n    console.log(chunk.choices[0].delta.content);\n  }\n}\n\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.ClientModel;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\n\nusing OpenAI.Chat;\n\nChatClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nList<ChatMessage> messages =\n[\n    new SystemChatMessage(\"You are a helpful assistant.\"),\n    new UserChatMessage(\"Hello!\")\n];\n\nAsyncCollectionResult<StreamingChatCompletionUpdate> completionUpdates = client.CompleteChatStreamingAsync(messages);\n\nawait foreach (StreamingChatCompletionUpdate completionUpdate in completionUpdates)\n{\n    if (completionUpdate.ContentUpdate.Count > 0)\n    {\n        Console.Write(completionUpdate.ContentUpdate[0].Text);\n    }\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Functions",
              "codeblock": {
                "title": "Functions",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n-d '{\n  \"model\": \"gpt-4.1\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"What is the weather like in Boston today?\"\n    }\n  ],\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather in a given location\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n              \"type\": \"string\",\n              \"description\": \"The city and state, e.g. San Francisco, CA\"\n            },\n            \"unit\": {\n              \"type\": \"string\",\n              \"enum\": [\"celsius\", \"fahrenheit\"]\n            }\n          },\n          \"required\": [\"location\"]\n        }\n      }\n    }\n  ],\n  \"tool_choice\": \"auto\"\n}'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ntools = [\n  {\n    \"type\": \"function\",\n    \"function\": {\n      \"name\": \"get_current_weather\",\n      \"description\": \"Get the current weather in a given location\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"location\": {\n            \"type\": \"string\",\n            \"description\": \"The city and state, e.g. San Francisco, CA\",\n          },\n          \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n        },\n        \"required\": [\"location\"],\n      },\n    }\n  }\n]\nmessages = [{\"role\": \"user\", \"content\": \"What's the weather like in Boston today?\"}]\ncompletion = client.chat.completions.create(\n  model=\"VAR_chat_model_id\",\n  messages=messages,\n  tools=tools,\n  tool_choice=\"auto\"\n)\n\nprint(completion)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const messages = [{\"role\": \"user\", \"content\": \"What's the weather like in Boston today?\"}];\n  const tools = [\n      {\n        \"type\": \"function\",\n        \"function\": {\n          \"name\": \"get_current_weather\",\n          \"description\": \"Get the current weather in a given location\",\n          \"parameters\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"location\": {\n                \"type\": \"string\",\n                \"description\": \"The city and state, e.g. San Francisco, CA\",\n              },\n              \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n            },\n            \"required\": [\"location\"],\n          },\n        }\n      }\n  ];\n\n  const response = await openai.chat.completions.create({\n    model: \"gpt-4.1\",\n    messages: messages,\n    tools: tools,\n    tool_choice: \"auto\",\n  });\n\n  console.log(response);\n}\n\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.Collections.Generic;\n\nusing OpenAI.Chat;\n\nChatClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nChatTool getCurrentWeatherTool = ChatTool.CreateFunctionTool(\n    functionName: \"get_current_weather\",\n    functionDescription: \"Get the current weather in a given location\",\n    functionParameters: BinaryData.FromString(\"\"\"\n        {\n            \"type\": \"object\",\n            \"properties\": {\n                \"location\": {\n                    \"type\": \"string\",\n                    \"description\": \"The city and state, e.g. San Francisco, CA\"\n                },\n                \"unit\": {\n                    \"type\": \"string\",\n                    \"enum\": [ \"celsius\", \"fahrenheit\" ]\n                }\n            },\n            \"required\": [ \"location\" ]\n        }\n    \"\"\")\n);\n\nList<ChatMessage> messages =\n[\n    new UserChatMessage(\"What's the weather like in Boston today?\"),\n];\n\nChatCompletionOptions options = new()\n{\n    Tools =\n    {\n        getCurrentWeatherTool\n    },\n    ToolChoice = ChatToolChoice.CreateAutoChoice(),\n};\n\nChatCompletion completion = client.CompleteChat(messages, options);\n"
                  }
                ]
              }
            },
            {
              "description": "Logprobs",
              "codeblock": {
                "title": "Logprobs",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"VAR_chat_model_id\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Hello!\"\n      }\n    ],\n    \"logprobs\": true,\n    \"top_logprobs\": 2\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletion = client.chat.completions.create(\n  model=\"VAR_chat_model_id\",\n  messages=[\n    {\"role\": \"user\", \"content\": \"Hello!\"}\n  ],\n  logprobs=True,\n  top_logprobs=2\n)\n\nprint(completion.choices[0].message)\nprint(completion.choices[0].logprobs)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const completion = await openai.chat.completions.create({\n    messages: [{ role: \"user\", content: \"Hello!\" }],\n    model: \"VAR_chat_model_id\",\n    logprobs: true,\n    top_logprobs: 2,\n  });\n\n  console.log(completion.choices[0]);\n}\n\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.Collections.Generic;\n\nusing OpenAI.Chat;\n\nChatClient client = new(\n    model: \"gpt-4.1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nList<ChatMessage> messages =\n[\n    new UserChatMessage(\"Hello!\")\n];\n\nChatCompletionOptions options = new()\n{\n    IncludeLogProbabilities = true,\n    TopLogProbabilityCount = 2\n};\n\nChatCompletion completion = client.CompleteChat(messages, options);\n\nConsole.WriteLine(completion.Content[0].Text);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"chatcmpl-B9MBs8CjcvOU2jLn4n570S5qMJKcT\",\n  \"object\": \"chat.completion\",\n  \"created\": 1741569952,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"Hello! How can I assist you today?\",\n        \"refusal\": null,\n        \"annotations\": []\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 19,\n    \"completion_tokens\": 10,\n    \"total_tokens\": 29,\n    \"prompt_tokens_details\": {\n      \"cached_tokens\": 0,\n      \"audio_tokens\": 0\n    },\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0,\n      \"audio_tokens\": 0,\n      \"accepted_prediction_tokens\": 0,\n      \"rejected_prediction_tokens\": 0\n    }\n  },\n  \"service_tier\": \"default\"\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Image input",
              "codeblock": {
                "title": "Image input",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG\",\n  \"object\": \"chat.completion\",\n  \"created\": 1741570283,\n  \"model\": \"gpt-4.1-2025-04-14\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"The image shows a wooden boardwalk path running through a lush green field or meadow. The sky is bright blue with some scattered clouds, giving the scene a serene and peaceful atmosphere. Trees and shrubs are visible in the background.\",\n        \"refusal\": null,\n        \"annotations\": []\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 1117,\n    \"completion_tokens\": 46,\n    \"total_tokens\": 1163,\n    \"prompt_tokens_details\": {\n      \"cached_tokens\": 0,\n      \"audio_tokens\": 0\n    },\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0,\n      \"audio_tokens\": 0,\n      \"accepted_prediction_tokens\": 0,\n      \"rejected_prediction_tokens\": 0\n    }\n  },\n  \"service_tier\": \"default\"\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"},\"logprobs\":null,\"finish_reason\":null}]}\n\n{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hello\"},\"logprobs\":null,\"finish_reason\":null}]}\n\n....\n\n{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"stop\"}]}\n"
                  }
                ]
              }
            },
            {
              "description": "Functions",
              "codeblock": {
                "title": "Functions",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"chatcmpl-abc123\",\n  \"object\": \"chat.completion\",\n  \"created\": 1699896916,\n  \"model\": \"gpt-4o-mini\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": null,\n        \"tool_calls\": [\n          {\n            \"id\": \"call_abc123\",\n            \"type\": \"function\",\n            \"function\": {\n              \"name\": \"get_current_weather\",\n              \"arguments\": \"{\\n\\\"location\\\": \\\"Boston, MA\\\"\\n}\"\n            }\n          }\n        ]\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"tool_calls\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 82,\n    \"completion_tokens\": 17,\n    \"total_tokens\": 99,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0,\n      \"accepted_prediction_tokens\": 0,\n      \"rejected_prediction_tokens\": 0\n    }\n  }\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Logprobs",
              "codeblock": {
                "title": "Logprobs",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"chatcmpl-123\",\n  \"object\": \"chat.completion\",\n  \"created\": 1702685778,\n  \"model\": \"gpt-4o-mini\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"Hello! How can I assist you today?\"\n      },\n      \"logprobs\": {\n        \"content\": [\n          {\n            \"token\": \"Hello\",\n            \"logprob\": -0.31725305,\n            \"bytes\": [72, 101, 108, 108, 111],\n            \"top_logprobs\": [\n              {\n                \"token\": \"Hello\",\n                \"logprob\": -0.31725305,\n                \"bytes\": [72, 101, 108, 108, 111]\n              },\n              {\n                \"token\": \"Hi\",\n                \"logprob\": -1.3190403,\n                \"bytes\": [72, 105]\n              }\n            ]\n          },\n          {\n            \"token\": \"!\",\n            \"logprob\": -0.02380986,\n            \"bytes\": [\n              33\n            ],\n            \"top_logprobs\": [\n              {\n                \"token\": \"!\",\n                \"logprob\": -0.02380986,\n                \"bytes\": [33]\n              },\n              {\n                \"token\": \" there\",\n                \"logprob\": -3.787621,\n                \"bytes\": [32, 116, 104, 101, 114, 101]\n              }\n            ]\n          },\n          {\n            \"token\": \" How\",\n            \"logprob\": -0.000054669687,\n            \"bytes\": [32, 72, 111, 119],\n            \"top_logprobs\": [\n              {\n                \"token\": \" How\",\n                \"logprob\": -0.000054669687,\n                \"bytes\": [32, 72, 111, 119]\n              },\n              {\n                \"token\": \"<|end|>\",\n                \"logprob\": -10.953937,\n                \"bytes\": null\n              }\n            ]\n          },\n          {\n            \"token\": \" can\",\n            \"logprob\": -0.015801601,\n            \"bytes\": [32, 99, 97, 110],\n            \"top_logprobs\": [\n              {\n                \"token\": \" can\",\n                \"logprob\": -0.015801601,\n                \"bytes\": [32, 99, 97, 110]\n              },\n              {\n                \"token\": \" may\",\n                \"logprob\": -4.161023,\n                \"bytes\": [32, 109, 97, 121]\n              }\n            ]\n          },\n          {\n            \"token\": \" I\",\n            \"logprob\": -3.7697225e-6,\n            \"bytes\": [\n              32,\n              73\n            ],\n            \"top_logprobs\": [\n              {\n                \"token\": \" I\",\n                \"logprob\": -3.7697225e-6,\n                \"bytes\": [32, 73]\n              },\n              {\n                \"token\": \" assist\",\n                \"logprob\": -13.596657,\n                \"bytes\": [32, 97, 115, 115, 105, 115, 116]\n              }\n            ]\n          },\n          {\n            \"token\": \" assist\",\n            \"logprob\": -0.04571125,\n            \"bytes\": [32, 97, 115, 115, 105, 115, 116],\n            \"top_logprobs\": [\n              {\n                \"token\": \" assist\",\n                \"logprob\": -0.04571125,\n                \"bytes\": [32, 97, 115, 115, 105, 115, 116]\n              },\n              {\n                \"token\": \" help\",\n                \"logprob\": -3.1089056,\n                \"bytes\": [32, 104, 101, 108, 112]\n              }\n            ]\n          },\n          {\n            \"token\": \" you\",\n            \"logprob\": -5.4385737e-6,\n            \"bytes\": [32, 121, 111, 117],\n            \"top_logprobs\": [\n              {\n                \"token\": \" you\",\n                \"logprob\": -5.4385737e-6,\n                \"bytes\": [32, 121, 111, 117]\n              },\n              {\n                \"token\": \" today\",\n                \"logprob\": -12.807695,\n                \"bytes\": [32, 116, 111, 100, 97, 121]\n              }\n            ]\n          },\n          {\n            \"token\": \" today\",\n            \"logprob\": -0.0040071653,\n            \"bytes\": [32, 116, 111, 100, 97, 121],\n            \"top_logprobs\": [\n              {\n                \"token\": \" today\",\n                \"logprob\": -0.0040071653,\n                \"bytes\": [32, 116, 111, 100, 97, 121]\n              },\n              {\n                \"token\": \"?\",\n                \"logprob\": -5.5247097,\n                \"bytes\": [63]\n              }\n            ]\n          },\n          {\n            \"token\": \"?\",\n            \"logprob\": -0.0008108172,\n            \"bytes\": [63],\n            \"top_logprobs\": [\n              {\n                \"token\": \"?\",\n                \"logprob\": -0.0008108172,\n                \"bytes\": [63]\n              },\n              {\n                \"token\": \"?\\n\",\n                \"logprob\": -7.184561,\n                \"bytes\": [63, 10]\n              }\n            ]\n          }\n        ]\n      },\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 9,\n    \"completion_tokens\": 9,\n    \"total_tokens\": 18,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0,\n      \"accepted_prediction_tokens\": 0,\n      \"rejected_prediction_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "messages",
                "type": "$$array",
                "description": "A list of messages comprising the conversation so far. Depending on the\n[model](/docs/models) you use, different message types (modalities) are\nsupported, like [text](/docs/guides/text-generation),\n[images](/docs/guides/vision), and [audio](/docs/guides/audio).\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "Developer message",
                      "type": "object",
                      "description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, `developer` messages\nreplace the previous `system` messages.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestDeveloperMessage",
                        "canonical": "objects/ChatCompletionRequestDeveloperMessage",
                        "label": "ChatCompletionRequestDeveloperMessage"
                      },
                      "properties": [
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the developer message.",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the developer message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. For developer messages, only type `text` is supported.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                    "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                    "label": "ChatCompletionRequestMessageContentPartText"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the content part.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "description": "The text content.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                "label": "ChatCompletionRequestMessageContentPartText"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `developer`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "developer"
                            }
                          ],
                          "properties": [
                            {
                              "name": "developer",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "System message",
                      "type": "object",
                      "description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestSystemMessage",
                        "canonical": "objects/ChatCompletionRequestSystemMessage",
                        "label": "ChatCompletionRequestSystemMessage"
                      },
                      "properties": [
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the system message.",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the system message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. For system messages, only type `text` is supported.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "$$array",
                                    "description": "An array of content parts with a defined type. For developer messages, only type `text` is supported.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                          "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                          "label": "ChatCompletionRequestMessageContentPartText"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the content part.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text content.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    }
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestSystemMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestSystemMessageContentPart",
                                  "label": "ChatCompletionRequestSystemMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestSystemMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestSystemMessageContentPart",
                                "label": "ChatCompletionRequestSystemMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `system`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "system"
                            }
                          ],
                          "properties": [
                            {
                              "name": "system",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "User message",
                      "type": "object",
                      "description": "Messages sent by an end user, containing prompts or additional context\ninformation.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestUserMessage",
                        "canonical": "objects/ChatCompletionRequestUserMessage",
                        "label": "ChatCompletionRequestUserMessage"
                      },
                      "properties": [
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the user message.\n",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The text contents of the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text, image, or audio inputs.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "$$array",
                                    "description": "An array of content parts with a defined type. For developer messages, only type `text` is supported.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                          "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                          "label": "ChatCompletionRequestMessageContentPartText"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the content part.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text content.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    }
                                  },
                                  {
                                    "name": "Image content part",
                                    "type": "object",
                                    "description": "Learn about [image inputs](/docs/guides/vision).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartImage",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartImage",
                                      "label": "ChatCompletionRequestMessageContentPartImage"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "image_url"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "image_url",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "image_url",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "url",
                                            "type": "string",
                                            "description": "Either a URL of the image or the base64 encoded image data.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "detail",
                                            "type": "$$enum",
                                            "description": "Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).",
                                            "meta": [
                                              {
                                                "name": "defaults",
                                                "value": "auto"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "auto",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "low",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "high",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Audio content part",
                                    "type": "object",
                                    "description": "Learn about [audio inputs](/docs/guides/audio).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartAudio",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartAudio",
                                      "label": "ChatCompletionRequestMessageContentPartAudio"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part. Always `input_audio`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "input_audio"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "input_audio",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "input_audio",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "data",
                                            "type": "string",
                                            "description": "Base64 encoded audio data.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "format",
                                            "type": "$$enum",
                                            "description": "The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "wav",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "mp3",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "File content part",
                                    "type": "object",
                                    "description": "Learn about [file inputs](/docs/guides/text) for text generation.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartFile",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartFile",
                                      "label": "ChatCompletionRequestMessageContentPartFile"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part. Always `file`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "file",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "filename",
                                            "type": "string",
                                            "description": "The name of the file, used when passing the file to the model as a \nstring.\n",
                                            "meta": []
                                          },
                                          {
                                            "name": "file_data",
                                            "type": "string",
                                            "description": "The base64 encoded file data, used when passing the file to the model \nas a string.\n",
                                            "meta": []
                                          },
                                          {
                                            "name": "file_id",
                                            "type": "string",
                                            "description": "The ID of an uploaded file to use as input.\n",
                                            "meta": []
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestUserMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestUserMessageContentPart",
                                  "label": "ChatCompletionRequestUserMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestUserMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestUserMessageContentPart",
                                "label": "ChatCompletionRequestUserMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `user`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "user"
                            }
                          ],
                          "properties": [
                            {
                              "name": "user",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "Assistant message",
                      "type": "object",
                      "description": "Messages sent by the model in response to user messages.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestAssistantMessage",
                        "canonical": "objects/ChatCompletionRequestAssistantMessage",
                        "label": "ChatCompletionRequestAssistantMessage"
                      },
                      "properties": [
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the assistant message.",
                              "meta": []
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. Can be one or more of type `text`, or exactly one of type `refusal`.",
                              "meta": [],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "$$array",
                                    "description": "An array of content parts with a defined type. For developer messages, only type `text` is supported.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                          "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                          "label": "ChatCompletionRequestMessageContentPartText"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the content part.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text content.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    }
                                  },
                                  {
                                    "name": "Refusal content part",
                                    "type": "object",
                                    "description": "",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartRefusal",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartRefusal",
                                      "label": "ChatCompletionRequestMessageContentPartRefusal"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "refusal"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "refusal",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "The refusal message generated by the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                                  "label": "ChatCompletionRequestAssistantMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                                "label": "ChatCompletionRequestAssistantMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "refusal",
                          "type": "string",
                          "description": "The refusal message by the assistant.",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `assistant`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        },
                        {
                          "name": "audio",
                          "type": "object",
                          "description": "Data about a previous audio response from the model. \n[Learn more](/docs/guides/audio).\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "id",
                              "type": "string",
                              "description": "Unique identifier for a previous audio response from the model.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "tool_calls",
                          "type": "$$array",
                          "description": "The tool calls generated by the model, such as function calls.",
                          "meta": [],
                          "properties": [],
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                            "canonical": "objects/ChatCompletionMessageToolCalls",
                            "label": "ChatCompletionMessageToolCalls"
                          },
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The ID of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of the tool. Currently, only `function` is supported.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "function"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "function",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "function",
                                "type": "object",
                                "description": "The function that the model called.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "name",
                                    "type": "string",
                                    "description": "The name of the function to call.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "arguments",
                                    "type": "string",
                                    "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionMessageToolCall",
                              "canonical": "objects/ChatCompletionMessageToolCall",
                              "label": "ChatCompletionMessageToolCall"
                            }
                          }
                        },
                        {
                          "name": "function_call",
                          "type": "object",
                          "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                          "meta": [
                            {
                              "name": "deprecated",
                              "value": "true"
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "arguments",
                              "type": "string",
                              "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Tool message",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestToolMessage",
                        "canonical": "objects/ChatCompletionRequestToolMessage",
                        "label": "ChatCompletionRequestToolMessage"
                      },
                      "properties": [
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `tool`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "tool"
                            }
                          ],
                          "properties": [
                            {
                              "name": "tool",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the tool message.",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the tool message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. For tool messages, only type `text` is supported.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "$$array",
                                    "description": "An array of content parts with a defined type. For developer messages, only type `text` is supported.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "",
                                        "type": "object",
                                        "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                          "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                          "label": "ChatCompletionRequestMessageContentPartText"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the content part.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text content.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    }
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestToolMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestToolMessageContentPart",
                                  "label": "ChatCompletionRequestToolMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestToolMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestToolMessageContentPart",
                                "label": "ChatCompletionRequestToolMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "tool_call_id",
                          "type": "string",
                          "description": "Tool call that this message is responding to.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function message",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "deprecated",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestFunctionMessage",
                        "canonical": "objects/ChatCompletionRequestFunctionMessage",
                        "label": "ChatCompletionRequestFunctionMessage"
                      },
                      "properties": [
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "string",
                          "description": "The contents of the function message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestMessage",
                    "canonical": "objects/ChatCompletionRequestMessage",
                    "label": "ChatCompletionRequestMessage"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionRequestMessage",
                  "canonical": "objects/ChatCompletionRequestMessage",
                  "label": "ChatCompletionRequestMessage"
                }
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o4-mini-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-2025-04-16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-preview-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-mini-2024-09-12",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-10-01",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-audio-preview-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-search-preview-2025-03-11",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "chatgpt-4o-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0301",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "modalities",
                "type": "$$array",
                "description": "Output types that you would like the model to generate.\nMost models are capable of generating text, which is the default:\n\n`[\"text\"]`\n\nThe `gpt-4o-audio-preview` model can also be used to \n[generate audio](/docs/guides/audio). To request that this model generate \nboth text and audio responses, you can use:\n\n`[\"text\", \"audio\"]`\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseModalities",
                  "canonical": "objects/ResponseModalities",
                  "label": "ResponseModalities"
                },
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "text",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                }
              },
              {
                "name": "reasoning_effort",
                "type": "$$enum",
                "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "medium"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningEffort",
                  "canonical": "objects/ReasoningEffort",
                  "label": "ReasoningEffort"
                }
              },
              {
                "name": "max_completion_tokens",
                "type": "integer",
                "description": "An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "frequency_penalty",
                "type": "number",
                "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on\ntheir existing frequency in the text so far, decreasing the model's\nlikelihood to repeat the same line verbatim.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": -2
                  }
                ]
              },
              {
                "name": "presence_penalty",
                "type": "number",
                "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on\nwhether they appear in the text so far, increasing the model's likelihood\nto talk about new topics.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": -2
                  }
                ]
              },
              {
                "name": "web_search_options",
                "type": "object",
                "description": "This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat).\n",
                "meta": [],
                "properties": [
                  {
                    "name": "user_location",
                    "type": "object",
                    "description": "Approximate location parameters for the search.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of location approximation. Always `approximate`.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "approximate"
                          }
                        ],
                        "properties": [
                          {
                            "name": "approximate",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "approximate",
                        "type": "object",
                        "description": "Approximate location parameters for the search.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/WebSearchLocation",
                          "canonical": "objects/WebSearchLocation",
                          "label": "WebSearchLocation"
                        },
                        "properties": [
                          {
                            "name": "country",
                            "type": "string",
                            "description": "The two-letter \n[ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user,\ne.g. `US`.\n",
                            "meta": []
                          },
                          {
                            "name": "region",
                            "type": "string",
                            "description": "Free text input for the region of the user, e.g. `California`.\n",
                            "meta": []
                          },
                          {
                            "name": "city",
                            "type": "string",
                            "description": "Free text input for the city of the user, e.g. `San Francisco`.\n",
                            "meta": []
                          },
                          {
                            "name": "timezone",
                            "type": "string",
                            "description": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones) \nof the user, e.g. `America/Los_Angeles`.\n",
                            "meta": []
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "search_context_size",
                    "type": "$$enum",
                    "description": "High level guidance for the amount of context window space to use for the \nsearch. One of `low`, `medium`, or `high`. `medium` is the default.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "medium"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/WebSearchContextSize",
                      "canonical": "objects/WebSearchContextSize",
                      "label": "WebSearchContextSize"
                    }
                  }
                ]
              },
              {
                "name": "top_logprobs",
                "type": "integer",
                "description": "An integer between 0 and 20 specifying the number of most likely tokens to\nreturn at each token position, each with an associated log probability.\n`logprobs` must be set to `true` if this parameter is used.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 20
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "response_format",
                "type": "$$xor",
                "description": "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.\n",
                "properties": [
                  {
                    "name": "Text",
                    "type": "object",
                    "description": "Default response format. Used to generate text responses.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatText",
                      "canonical": "objects/ResponseFormatText",
                      "label": "ResponseFormatText"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `text`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON schema",
                    "type": "object",
                    "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonSchema",
                      "canonical": "objects/ResponseFormatJsonSchema",
                      "label": "ResponseFormatJsonSchema"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_schema`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_schema"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_schema",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "json_schema",
                        "type": "object",
                        "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "JSON object",
                    "type": "object",
                    "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonObject",
                      "canonical": "objects/ResponseFormatJsonObject",
                      "label": "ResponseFormatJsonObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_object`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_object"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_object",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "audio",
                "type": "object",
                "description": "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "voice",
                    "type": "$$union",
                    "description": "The voice the model uses to respond. Supported voices are \n`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`.\n",
                    "properties": [
                      {
                        "name": "voice",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "voice",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "alloy",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "ash",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "ballad",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "coral",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "echo",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "fable",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "onyx",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "nova",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "sage",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "shimmer",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "verse",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "format",
                    "type": "$$enum",
                    "description": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "wav",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "aac",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "mp3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "flac",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "opus",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "pcm16",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "store",
                "type": "boolean",
                "description": "Whether or not to store the output of this chat completion request for \nuse in our [model distillation](/docs/guides/distillation) or\n[evals](/docs/guides/evals) products.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/chat/streaming)\nfor more information, along with the [streaming responses](/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "stop",
                "type": "$$xor",
                "description": "Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n",
                "properties": [
                  {
                    "name": "stop",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "<|endoftext|>"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "\n"
                      }
                    ]
                  },
                  {
                    "name": "stop",
                    "type": "$$array",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "example",
                            "value": "[\"\\n\"]"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/StopConfiguration",
                  "canonical": "objects/StopConfiguration",
                  "label": "StopConfiguration"
                }
              },
              {
                "name": "logit_bias",
                "type": "object",
                "description": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the\ntokenizer) to an associated bias value from -100 to 100. Mathematically,\nthe bias is added to the logits generated by the model prior to sampling.\nThe exact effect will vary per model, but values between -1 and 1 should\ndecrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "logprobs",
                "type": "boolean",
                "description": "Whether to return log probabilities of the output tokens or not. If true,\nreturns the log probabilities of each output token returned in the\n`content` of `message`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "max_tokens",
                "type": "integer",
                "description": "The maximum number of [tokens](/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](/docs/guides/reasoning).\n",
                "meta": [
                  {
                    "name": "deprecated",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "n",
                "type": "integer",
                "description": "How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 128
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "prediction",
                "type": "$$xor",
                "description": "Configuration for a [Predicted Output](/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.\n",
                "properties": [
                  {
                    "name": "Static Content",
                    "type": "object",
                    "description": "Static predicted output content, such as the content of a text file that is\nbeing regenerated.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/PredictionContent",
                      "canonical": "objects/PredictionContent",
                      "label": "PredictionContent"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of the predicted content you want to provide. This type is\ncurrently always `content`.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "content"
                          }
                        ],
                        "properties": [
                          {
                            "name": "content",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "content",
                        "type": "$$xor",
                        "description": "The content that should be matched when generating a model response.\nIf generated tokens would match this content, the entire model response\ncan be returned much more quickly.\n",
                        "properties": [
                          {
                            "name": "Text content",
                            "type": "string",
                            "description": "The content used for a Predicted Output. This is often the\ntext of a file you are regenerating with minor changes.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "Array of content parts",
                            "type": "$$array",
                            "description": "An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text inputs.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                              "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                              "label": "ChatCompletionRequestMessageContentPartText"
                            }
                          }
                        ],
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "seed",
                "type": "integer",
                "description": "This feature is in Beta.\nIf specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 9223372036854776000
                  },
                  {
                    "name": "minimum",
                    "value": -9223372036854776000
                  }
                ]
              },
              {
                "name": "stream_options",
                "type": "object",
                "description": "Options for streaming response. Only set this when you set `stream: true`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionStreamOptions",
                  "canonical": "objects/ChatCompletionStreamOptions",
                  "label": "ChatCompletionStreamOptions"
                },
                "properties": [
                  {
                    "name": "include_usage",
                    "type": "boolean",
                    "description": "If set, an additional chunk will be streamed before the `data: [DONE]`\nmessage. The `usage` field on this chunk shows the token usage statistics\nfor the entire request, and the `choices` field will always be an empty\narray. \n\nAll other chunks will also include a `usage` field, but with a null\nvalue. **NOTE:** If the stream is interrupted, you may not receive the\nfinal usage chunk which contains the total token usage for the request.\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool. Currently, only `function` is supported.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "function",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionObject",
                        "canonical": "objects/FunctionObject",
                        "label": "FunctionObject"
                      },
                      "properties": [
                        {
                          "name": "description",
                          "type": "string",
                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                          "meta": []
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "object",
                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionParameters",
                            "canonical": "objects/FunctionParameters",
                            "label": "FunctionParameters"
                          }
                        },
                        {
                          "name": "strict",
                          "type": "boolean",
                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": false
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionTool",
                    "canonical": "objects/ChatCompletionTool",
                    "label": "ChatCompletionTool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionTool",
                  "canonical": "objects/ChatCompletionTool",
                  "label": "ChatCompletionTool"
                }
              },
              {
                "name": "tool_choice",
                "type": "$$xor",
                "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools.\nSpecifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n\n`none` is the default when no tools are present. `auto` is the default if tools are present.\n",
                "properties": [
                  {
                    "name": "tool_choice",
                    "type": "$$enum",
                    "description": "`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.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "required",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "tool_choice",
                    "type": "object",
                    "description": "Specifies a tool the model should use. Use to force the model to call a specific function.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ChatCompletionNamedToolChoice",
                      "canonical": "objects/ChatCompletionNamedToolChoice",
                      "label": "ChatCompletionNamedToolChoice"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of the tool. Currently, only `function` is supported.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "function"
                          }
                        ],
                        "properties": [
                          {
                            "name": "function",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "function",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the function to call.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionToolChoiceOption",
                  "canonical": "objects/ChatCompletionToolChoiceOption",
                  "label": "ChatCompletionToolChoiceOption"
                }
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": true
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ParallelToolCalls",
                  "canonical": "objects/ParallelToolCalls",
                  "label": "ParallelToolCalls"
                }
              },
              {
                "name": "function_call",
                "type": "$$xor",
                "description": "Deprecated in favor of `tool_choice`.\n\nControls which (if any) function is called by the model.\n\n`none` means the model will not call a function and instead generates a\nmessage.\n\n`auto` means the model can pick between generating a message or calling a\nfunction.\n\nSpecifying a particular function via `{\"name\": \"my_function\"}` forces the\nmodel to call that function.\n\n`none` is the default when no functions are present. `auto` is the default\nif functions are present.\n",
                "properties": [
                  {
                    "name": "function_call",
                    "type": "$$enum",
                    "description": "`none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "function_call",
                    "type": "object",
                    "description": "Specifying a particular function via `{\"name\": \"my_function\"}` forces the model to call that function.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ChatCompletionFunctionCallOption",
                      "canonical": "objects/ChatCompletionFunctionCallOption",
                      "label": "ChatCompletionFunctionCallOption"
                    },
                    "properties": [
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the function to call.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "deprecated",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "functions",
                "type": "$$array",
                "description": "Deprecated in favor of `tools`.\n\nA list of functions the model may generate JSON inputs for.\n",
                "meta": [
                  {
                    "name": "deprecated",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "description",
                      "type": "string",
                      "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionParameters",
                        "canonical": "objects/FunctionParameters",
                        "label": "FunctionParameters"
                      }
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "deprecated",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionFunctions",
                    "canonical": "objects/ChatCompletionFunctions",
                    "label": "ChatCompletionFunctions"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionFunctions",
                  "canonical": "objects/ChatCompletionFunctions",
                  "label": "ChatCompletionFunctions"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateChatCompletionRequest",
              "canonical": "objects/CreateChatCompletionRequest",
              "label": "CreateChatCompletionRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "Returns a [chat completion](/docs/api-reference/chat/object) object, or a streamed sequence of [chat completion chunk](/docs/api-reference/chat/streaming) objects if the request is streamed.\n",
        "properties": []
      }
    ]
  },
  {
    "title": "Get chat completion",
    "canonical": "chat/get",
    "description": "Get a stored chat completion. Only Chat Completions that have been created\nwith the `store` parameter set to `true` will be returned.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/chat/completions/{completion_id}",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ],
      "fullPath": "https://api.openai.com/v1/chat/completions/{completion_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions/chatcmpl-abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletions = client.chat.completions.list()\nfirst_id = completions[0].id\nfirst_completion = client.chat.completions.retrieve(completion_id=first_id)\nprint(first_completion)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"chat.completion\",\n  \"id\": \"chatcmpl-abc123\",\n  \"model\": \"gpt-4o-2024-08-06\",\n  \"created\": 1738960610,\n  \"request_id\": \"req_ded8ab984ec4bf840f37566c1011c417\",\n  \"tool_choice\": null,\n  \"usage\": {\n    \"total_tokens\": 31,\n    \"completion_tokens\": 18,\n    \"prompt_tokens\": 13\n  },\n  \"seed\": 4944116822809979520,\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"presence_penalty\": 0.0,\n  \"frequency_penalty\": 0.0,\n  \"system_fingerprint\": \"fp_50cad350e4\",\n  \"input_user\": null,\n  \"service_tier\": \"default\",\n  \"tools\": null,\n  \"metadata\": {},\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"content\": \"Mind of circuits hum,  \\nLearning patterns in silence—  \\nFuture's quiet spark.\",\n        \"role\": \"assistant\",\n        \"tool_calls\": null,\n        \"function_call\": null\n      },\n      \"finish_reason\": \"stop\",\n      \"logprobs\": null\n    }\n  ],\n  \"response_format\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "completion_id",
            "type": "string",
            "description": "The ID of the chat completion to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [ChatCompletion](/docs/api-reference/chat/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get chat messages",
    "canonical": "chat/getMessages",
    "description": "Get the messages in a stored chat completion. Only Chat Completions that\nhave been created with the `store` parameter set to `true` will be\nreturned.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/chat/completions/{completion_id}/messages",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ],
      "fullPath": "https://api.openai.com/v1/chat/completions/{completion_id}/messages",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions/chat_abc123/messages \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletions = client.chat.completions.list()\nfirst_id = completions[0].id\nfirst_completion = client.chat.completions.retrieve(completion_id=first_id)\nmessages = client.chat.completions.messages.list(completion_id=first_id)\nprint(messages)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n      \"role\": \"user\",\n      \"content\": \"write a haiku about ai\",\n      \"name\": null,\n      \"content_parts\": null\n    }\n  ],\n  \"first_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n  \"last_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "completion_id",
            "type": "string",
            "description": "The ID of the chat completion to retrieve messages from.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last message from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of messages to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order for messages by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.",
            "meta": [
              {
                "name": "defaults",
                "value": "asc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [messages](/docs/api-reference/chat/message-list) for the specified chat completion.",
        "properties": []
      }
    ]
  },
  {
    "title": "List Chat Completions",
    "canonical": "chat/list",
    "description": "List stored Chat Completions. Only Chat Completions that have been stored\nwith the `store` parameter set to `true` will be returned.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/chat/completions",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ],
      "fullPath": "https://api.openai.com/v1/chat/completions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/chat/completions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletions = client.chat.completions.list()\nprint(completions)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"chat.completion\",\n      \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n      \"model\": \"gpt-4.1-2025-04-14\",\n      \"created\": 1738960610,\n      \"request_id\": \"req_ded8ab984ec4bf840f37566c1011c417\",\n      \"tool_choice\": null,\n      \"usage\": {\n        \"total_tokens\": 31,\n        \"completion_tokens\": 18,\n        \"prompt_tokens\": 13\n      },\n      \"seed\": 4944116822809979520,\n      \"top_p\": 1.0,\n      \"temperature\": 1.0,\n      \"presence_penalty\": 0.0,\n      \"frequency_penalty\": 0.0,\n      \"system_fingerprint\": \"fp_50cad350e4\",\n      \"input_user\": null,\n      \"service_tier\": \"default\",\n      \"tools\": null,\n      \"metadata\": {},\n      \"choices\": [\n        {\n          \"index\": 0,\n          \"message\": {\n            \"content\": \"Mind of circuits hum,  \\nLearning patterns in silence—  \\nFuture's quiet spark.\",\n            \"role\": \"assistant\",\n            \"tool_calls\": null,\n            \"function_call\": null\n          },\n          \"finish_reason\": \"stop\",\n          \"logprobs\": null\n        }\n      ],\n      \"response_format\": null\n    }\n  ],\n  \"first_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n  \"last_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "model",
            "type": "string",
            "description": "The model used to generate the Chat Completions.",
            "meta": []
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "A list of metadata keys to filter the Chat Completions by. Example:\n\n`metadata[key1]=value1&metadata[key2]=value2`\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last chat completion from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of Chat Completions to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order for Chat Completions by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.",
            "meta": [
              {
                "name": "defaults",
                "value": "asc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [Chat Completions](/docs/api-reference/chat/list-object) matching the specified filters.",
        "properties": []
      }
    ]
  },
  {
    "title": "Update chat completion",
    "canonical": "chat/update",
    "description": "Modify a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be modified. Currently,\nthe only supported modification is to update the `metadata` field.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/chat/completions/{completion_id}",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ],
      "fullPath": "https://api.openai.com/v1/chat/completions/{completion_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/chat/completions/chat_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"metadata\": {\"foo\": \"bar\"}}'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletions = client.chat.completions.list()\nfirst_id = completions[0].id\nupdated_completion = client.chat.completions.update(completion_id=first_id, request_body={\"metadata\": {\"foo\": \"bar\"}})\nprint(updated_completion)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"chat.completion\",\n  \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n  \"model\": \"gpt-4o-2024-08-06\",\n  \"created\": 1738960610,\n  \"request_id\": \"req_ded8ab984ec4bf840f37566c1011c417\",\n  \"tool_choice\": null,\n  \"usage\": {\n    \"total_tokens\": 31,\n    \"completion_tokens\": 18,\n    \"prompt_tokens\": 13\n  },\n  \"seed\": 4944116822809979520,\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"presence_penalty\": 0.0,\n  \"frequency_penalty\": 0.0,\n  \"system_fingerprint\": \"fp_50cad350e4\",\n  \"input_user\": null,\n  \"service_tier\": \"default\",\n  \"tools\": null,\n  \"metadata\": {\n    \"foo\": \"bar\"\n  },\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"content\": \"Mind of circuits hum,  \\nLearning patterns in silence—  \\nFuture's quiet spark.\",\n        \"role\": \"assistant\",\n        \"tool_calls\": null,\n        \"function_call\": null\n      },\n      \"finish_reason\": \"stop\",\n      \"logprobs\": null\n    }\n  ],\n  \"response_format\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "completion_id",
            "type": "string",
            "description": "The ID of the chat completion to update.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The [ChatCompletion](/docs/api-reference/chat/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete chat completion",
    "canonical": "chat/delete",
    "description": "Delete a stored chat completion. Only Chat Completions that have been\ncreated with the `store` parameter set to `true` can be deleted.\n",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/chat/completions/{completion_id}",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ],
      "fullPath": "https://api.openai.com/v1/chat/completions/{completion_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/chat/completions/chat_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncompletions = client.chat.completions.list()\nfirst_id = completions[0].id\ndelete_response = client.chat.completions.delete(completion_id=first_id)\nprint(delete_response)\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"chat.completion.deleted\",\n  \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "completion_id",
            "type": "string",
            "description": "The ID of the chat completion to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "A deletion confirmation object.",
        "properties": []
      }
    ]
  },
  {
    "title": "The chat completion object",
    "description": "Represents a chat completion response returned by model, based on the provided input.",
    "canonical": "chat/object",
    "definitions": [
      {
        "title": "CreateChatCompletionResponse",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "A unique identifier for the chat completion.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "choices",
            "type": "$$array",
            "description": "A list of chat completion choices. Can be more than one if `n` is greater than 1.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "finish_reason",
                  "type": "$$enum",
                  "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "stop",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "length",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "tool_calls",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "content_filter",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "function_call",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "index",
                  "type": "integer",
                  "description": "The index of the choice in the list of choices.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "message",
                  "type": "object",
                  "description": "A chat completion message generated by the model.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionResponseMessage",
                    "canonical": "objects/ChatCompletionResponseMessage",
                    "label": "ChatCompletionResponseMessage"
                  },
                  "properties": [
                    {
                      "name": "content",
                      "type": "string",
                      "description": "The contents of the message.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "refusal",
                      "type": "string",
                      "description": "The refusal message generated by the model.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "tool_calls",
                      "type": "$$array",
                      "description": "The tool calls generated by the model, such as function calls.",
                      "meta": [],
                      "properties": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                        "canonical": "objects/ChatCompletionMessageToolCalls",
                        "label": "ChatCompletionMessageToolCalls"
                      },
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the tool call.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the tool. Currently, only `function` is supported.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "function"
                              }
                            ],
                            "properties": [
                              {
                                "name": "function",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "function",
                            "type": "object",
                            "description": "The function that the model called.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "name",
                                "type": "string",
                                "description": "The name of the function to call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "arguments",
                                "type": "string",
                                "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionMessageToolCall",
                          "canonical": "objects/ChatCompletionMessageToolCall",
                          "label": "ChatCompletionMessageToolCall"
                        }
                      }
                    },
                    {
                      "name": "annotations",
                      "type": "$$array",
                      "description": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the URL citation. Always `url_citation`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "url_citation"
                              }
                            ],
                            "properties": [
                              {
                                "name": "url_citation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "url_citation",
                            "type": "object",
                            "description": "A URL citation when using web search.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "end_index",
                                "type": "integer",
                                "description": "The index of the last character of the URL citation in the message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "start_index",
                                "type": "integer",
                                "description": "The index of the first character of the URL citation in the message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "url",
                                "type": "string",
                                "description": "The URL of the web resource.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "title",
                                "type": "string",
                                "description": "The title of the web resource.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "description": "A URL citation when using web search.\n",
                        "meta": []
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the author of this message.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "assistant"
                        }
                      ],
                      "properties": [
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "function_call",
                      "type": "object",
                      "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                      "meta": [
                        {
                          "name": "deprecated",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "audio",
                      "type": "object",
                      "description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "Unique identifier for this audio response.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "expires_at",
                          "type": "integer",
                          "description": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "data",
                          "type": "string",
                          "description": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "transcript",
                          "type": "string",
                          "description": "Transcript of the audio generated by the model.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "logprobs",
                  "type": "object",
                  "description": "Log probability information for the choice.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "nullable",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "A list of message content tokens with log probability information.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "token",
                            "type": "string",
                            "description": "The token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "logprob",
                            "type": "number",
                            "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "bytes",
                            "type": "$$array",
                            "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "integer",
                              "properties": [],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "top_logprobs",
                            "type": "$$array",
                            "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "token",
                                  "type": "string",
                                  "description": "The token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "logprob",
                                  "type": "number",
                                  "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "bytes",
                                  "type": "$$array",
                                  "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "integer",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionTokenLogprob",
                          "canonical": "objects/ChatCompletionTokenLogprob",
                          "label": "ChatCompletionTokenLogprob"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionTokenLogprob",
                        "canonical": "objects/ChatCompletionTokenLogprob",
                        "label": "ChatCompletionTokenLogprob"
                      }
                    },
                    {
                      "name": "refusal",
                      "type": "$$array",
                      "description": "A list of message content tokens with log probability information.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "token",
                            "type": "string",
                            "description": "The token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "logprob",
                            "type": "number",
                            "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "bytes",
                            "type": "$$array",
                            "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "integer",
                              "properties": [],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "top_logprobs",
                            "type": "$$array",
                            "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "token",
                                  "type": "string",
                                  "description": "The token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "logprob",
                                  "type": "number",
                                  "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "bytes",
                                  "type": "$$array",
                                  "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "integer",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionTokenLogprob",
                          "canonical": "objects/ChatCompletionTokenLogprob",
                          "label": "ChatCompletionTokenLogprob"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionTokenLogprob",
                        "canonical": "objects/ChatCompletionTokenLogprob",
                        "label": "ChatCompletionTokenLogprob"
                      }
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "created",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the chat completion was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model used for the chat completion.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "service_tier",
            "type": "$$enum",
            "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "auto"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "auto",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "default",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "flex",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            },
            "symbolDef": {
              "id": "#/components/schemas/ServiceTier",
              "canonical": "objects/ServiceTier",
              "label": "ServiceTier"
            }
          },
          {
            "name": "system_fingerprint",
            "type": "string",
            "description": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n",
            "meta": []
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `chat.completion`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "chat.completion"
              }
            ],
            "properties": [
              {
                "name": "chat.completion",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "usage",
            "type": "object",
            "description": "Usage statistics for the completion request.",
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/CompletionUsage",
              "canonical": "objects/CompletionUsage",
              "label": "CompletionUsage"
            },
            "properties": [
              {
                "name": "completion_tokens",
                "type": "integer",
                "description": "Number of tokens in the generated completion.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "prompt_tokens",
                "type": "integer",
                "description": "Number of tokens in the prompt.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "Total number of tokens used in the request (prompt + completion).",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "completion_tokens_details",
                "type": "object",
                "description": "Breakdown of tokens used in a completion.",
                "meta": [],
                "properties": [
                  {
                    "name": "accepted_prediction_tokens",
                    "type": "integer",
                    "description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "audio_tokens",
                    "type": "integer",
                    "description": "Audio input tokens generated by the model.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "reasoning_tokens",
                    "type": "integer",
                    "description": "Tokens generated by the model for reasoning.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "rejected_prediction_tokens",
                    "type": "integer",
                    "description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  }
                ]
              },
              {
                "name": "prompt_tokens_details",
                "type": "object",
                "description": "Breakdown of tokens used in the prompt.",
                "meta": [],
                "properties": [
                  {
                    "name": "audio_tokens",
                    "type": "integer",
                    "description": "Audio input tokens present in the prompt.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "cached_tokens",
                    "type": "integer",
                    "description": "Cached tokens present in the prompt.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CreateChatCompletionResponse",
          "canonical": "objects/CreateChatCompletionResponse",
          "label": "chat.completion"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"chatcmpl-B9MHDbslfkBeAs8l4bebGdFOJ6PeG\",\n  \"object\": \"chat.completion\",\n  \"created\": 1741570283,\n  \"model\": \"gpt-4o-2024-08-06\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"The image shows a wooden boardwalk path running through a lush green field or meadow. The sky is bright blue with some scattered clouds, giving the scene a serene and peaceful atmosphere. Trees and shrubs are visible in the background.\",\n        \"refusal\": null,\n        \"annotations\": []\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 1117,\n    \"completion_tokens\": 46,\n    \"total_tokens\": 1163,\n    \"prompt_tokens_details\": {\n      \"cached_tokens\": 0,\n      \"audio_tokens\": 0\n    },\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0,\n      \"audio_tokens\": 0,\n      \"accepted_prediction_tokens\": 0,\n      \"rejected_prediction_tokens\": 0\n    }\n  },\n  \"service_tier\": \"default\",\n  \"system_fingerprint\": \"fp_fc9f1d7035\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CreateChatCompletionResponse",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ]
    }
  },
  {
    "title": "The chat completion list object",
    "description": "An object representing a list of Chat Completions.\n",
    "canonical": "chat/list-object",
    "definitions": [
      {
        "title": "ChatCompletionList",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The type of this object. It is always set to \"list\".\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": "list"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "list"
              }
            ],
            "properties": [
              {
                "name": "list",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "data",
            "type": "$$array",
            "description": "An array of chat completion objects.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "id",
                  "type": "string",
                  "description": "A unique identifier for the chat completion.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "choices",
                  "type": "$$array",
                  "description": "A list of chat completion choices. Can be more than one if `n` is greater than 1.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [],
                  "ofProperty": {
                    "name": "",
                    "type": "object",
                    "properties": [
                      {
                        "name": "finish_reason",
                        "type": "$$enum",
                        "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "stop",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "length",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "tool_calls",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "content_filter",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "function_call",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "index",
                        "type": "integer",
                        "description": "The index of the choice in the list of choices.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "message",
                        "type": "object",
                        "description": "A chat completion message generated by the model.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionResponseMessage",
                          "canonical": "objects/ChatCompletionResponseMessage",
                          "label": "ChatCompletionResponseMessage"
                        },
                        "properties": [
                          {
                            "name": "content",
                            "type": "string",
                            "description": "The contents of the message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "refusal",
                            "type": "string",
                            "description": "The refusal message generated by the model.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tool_calls",
                            "type": "$$array",
                            "description": "The tool calls generated by the model, such as function calls.",
                            "meta": [],
                            "properties": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                              "canonical": "objects/ChatCompletionMessageToolCalls",
                              "label": "ChatCompletionMessageToolCalls"
                            },
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The ID of the tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the tool. Currently, only `function` is supported.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "function"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "function",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "function",
                                  "type": "object",
                                  "description": "The function that the model called.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "name",
                                      "type": "string",
                                      "description": "The name of the function to call.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "arguments",
                                      "type": "string",
                                      "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionMessageToolCall",
                                "canonical": "objects/ChatCompletionMessageToolCall",
                                "label": "ChatCompletionMessageToolCall"
                              }
                            }
                          },
                          {
                            "name": "annotations",
                            "type": "$$array",
                            "description": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n",
                            "meta": [],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the URL citation. Always `url_citation`.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "url_citation"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "url_citation",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "url_citation",
                                  "type": "object",
                                  "description": "A URL citation when using web search.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "end_index",
                                      "type": "integer",
                                      "description": "The index of the last character of the URL citation in the message.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "start_index",
                                      "type": "integer",
                                      "description": "The index of the first character of the URL citation in the message.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "url",
                                      "type": "string",
                                      "description": "The URL of the web resource.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "title",
                                      "type": "string",
                                      "description": "The title of the web resource.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "A URL citation when using web search.\n",
                              "meta": []
                            }
                          },
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The role of the author of this message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "assistant"
                              }
                            ],
                            "properties": [
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "function_call",
                            "type": "object",
                            "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                            "meta": [
                              {
                                "name": "deprecated",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "arguments",
                                "type": "string",
                                "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "name",
                                "type": "string",
                                "description": "The name of the function to call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "audio",
                            "type": "object",
                            "description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "id",
                                "type": "string",
                                "description": "Unique identifier for this audio response.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "expires_at",
                                "type": "integer",
                                "description": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "data",
                                "type": "string",
                                "description": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "transcript",
                                "type": "string",
                                "description": "Transcript of the audio generated by the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "logprobs",
                        "type": "object",
                        "description": "Log probability information for the choice.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "A list of message content tokens with log probability information.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "token",
                                  "type": "string",
                                  "description": "The token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "logprob",
                                  "type": "number",
                                  "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "bytes",
                                  "type": "$$array",
                                  "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "integer",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "name": "top_logprobs",
                                  "type": "$$array",
                                  "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "token",
                                        "type": "string",
                                        "description": "The token.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "logprob",
                                        "type": "number",
                                        "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "bytes",
                                        "type": "$$array",
                                        "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [],
                                        "ofProperty": {
                                          "name": "",
                                          "type": "integer",
                                          "properties": [],
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionTokenLogprob",
                                "canonical": "objects/ChatCompletionTokenLogprob",
                                "label": "ChatCompletionTokenLogprob"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionTokenLogprob",
                              "canonical": "objects/ChatCompletionTokenLogprob",
                              "label": "ChatCompletionTokenLogprob"
                            }
                          },
                          {
                            "name": "refusal",
                            "type": "$$array",
                            "description": "A list of message content tokens with log probability information.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "token",
                                  "type": "string",
                                  "description": "The token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "logprob",
                                  "type": "number",
                                  "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "bytes",
                                  "type": "$$array",
                                  "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "integer",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "name": "top_logprobs",
                                  "type": "$$array",
                                  "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "token",
                                        "type": "string",
                                        "description": "The token.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "logprob",
                                        "type": "number",
                                        "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "bytes",
                                        "type": "$$array",
                                        "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [],
                                        "ofProperty": {
                                          "name": "",
                                          "type": "integer",
                                          "properties": [],
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionTokenLogprob",
                                "canonical": "objects/ChatCompletionTokenLogprob",
                                "label": "ChatCompletionTokenLogprob"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionTokenLogprob",
                              "canonical": "objects/ChatCompletionTokenLogprob",
                              "label": "ChatCompletionTokenLogprob"
                            }
                          }
                        ]
                      }
                    ],
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                },
                {
                  "name": "created",
                  "type": "integer",
                  "description": "The Unix timestamp (in seconds) of when the chat completion was created.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "The model used for the chat completion.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "service_tier",
                  "type": "$$enum",
                  "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
                  "meta": [
                    {
                      "name": "defaults",
                      "value": "auto"
                    },
                    {
                      "name": "nullable",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "auto",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "default",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "flex",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  },
                  "symbolDef": {
                    "id": "#/components/schemas/ServiceTier",
                    "canonical": "objects/ServiceTier",
                    "label": "ServiceTier"
                  }
                },
                {
                  "name": "system_fingerprint",
                  "type": "string",
                  "description": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n",
                  "meta": []
                },
                {
                  "name": "object",
                  "type": "$$enum",
                  "description": "The object type, which is always `chat.completion`.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    },
                    {
                      "name": "const",
                      "value": "chat.completion"
                    }
                  ],
                  "properties": [
                    {
                      "name": "chat.completion",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "usage",
                  "type": "object",
                  "description": "Usage statistics for the completion request.",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/CompletionUsage",
                    "canonical": "objects/CompletionUsage",
                    "label": "CompletionUsage"
                  },
                  "properties": [
                    {
                      "name": "completion_tokens",
                      "type": "integer",
                      "description": "Number of tokens in the generated completion.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": 0
                        }
                      ]
                    },
                    {
                      "name": "prompt_tokens",
                      "type": "integer",
                      "description": "Number of tokens in the prompt.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": 0
                        }
                      ]
                    },
                    {
                      "name": "total_tokens",
                      "type": "integer",
                      "description": "Total number of tokens used in the request (prompt + completion).",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": 0
                        }
                      ]
                    },
                    {
                      "name": "completion_tokens_details",
                      "type": "object",
                      "description": "Breakdown of tokens used in a completion.",
                      "meta": [],
                      "properties": [
                        {
                          "name": "accepted_prediction_tokens",
                          "type": "integer",
                          "description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": 0
                            }
                          ]
                        },
                        {
                          "name": "audio_tokens",
                          "type": "integer",
                          "description": "Audio input tokens generated by the model.",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": 0
                            }
                          ]
                        },
                        {
                          "name": "reasoning_tokens",
                          "type": "integer",
                          "description": "Tokens generated by the model for reasoning.",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": 0
                            }
                          ]
                        },
                        {
                          "name": "rejected_prediction_tokens",
                          "type": "integer",
                          "description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": 0
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "prompt_tokens_details",
                      "type": "object",
                      "description": "Breakdown of tokens used in the prompt.",
                      "meta": [],
                      "properties": [
                        {
                          "name": "audio_tokens",
                          "type": "integer",
                          "description": "Audio input tokens present in the prompt.",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": 0
                            }
                          ]
                        },
                        {
                          "name": "cached_tokens",
                          "type": "integer",
                          "description": "Cached tokens present in the prompt.",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": 0
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "Represents a chat completion response returned by model, based on the provided input.",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ],
              "symbolDef": {
                "id": "#/components/schemas/CreateChatCompletionResponse",
                "canonical": "objects/CreateChatCompletionResponse",
                "label": "chat.completion"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/CreateChatCompletionResponse",
              "canonical": "objects/CreateChatCompletionResponse",
              "label": "chat.completion"
            }
          },
          {
            "name": "first_id",
            "type": "string",
            "description": "The identifier of the first chat completion in the data array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "last_id",
            "type": "string",
            "description": "The identifier of the last chat completion in the data array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "has_more",
            "type": "boolean",
            "description": "Indicates whether there are more Chat Completions available.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ChatCompletionList",
          "canonical": "objects/ChatCompletionList",
          "label": "list"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"chat.completion\",\n      \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n      \"model\": \"gpt-4o-2024-08-06\",\n      \"created\": 1738960610,\n      \"request_id\": \"req_ded8ab984ec4bf840f37566c1011c417\",\n      \"tool_choice\": null,\n      \"usage\": {\n        \"total_tokens\": 31,\n        \"completion_tokens\": 18,\n        \"prompt_tokens\": 13\n      },\n      \"seed\": 4944116822809979520,\n      \"top_p\": 1.0,\n      \"temperature\": 1.0,\n      \"presence_penalty\": 0.0,\n      \"frequency_penalty\": 0.0,\n      \"system_fingerprint\": \"fp_50cad350e4\",\n      \"input_user\": null,\n      \"service_tier\": \"default\",\n      \"tools\": null,\n      \"metadata\": {},\n      \"choices\": [\n        {\n          \"index\": 0,\n          \"message\": {\n            \"content\": \"Mind of circuits hum,  \\nLearning patterns in silence—  \\nFuture's quiet spark.\",\n            \"role\": \"assistant\",\n            \"tool_calls\": null,\n            \"function_call\": null\n          },\n          \"finish_reason\": \"stop\",\n          \"logprobs\": null\n        }\n      ],\n      \"response_format\": null\n    }\n  ],\n  \"first_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n  \"last_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ChatCompletionList",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ]
    }
  },
  {
    "title": "The chat completion message list object",
    "description": "An object representing a list of chat completion messages.\n",
    "canonical": "chat/message-list",
    "definitions": [
      {
        "title": "ChatCompletionMessageList",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The type of this object. It is always set to \"list\".\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": "list"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "list"
              }
            ],
            "properties": [
              {
                "name": "list",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "data",
            "type": "$$array",
            "description": "An array of chat completion message objects.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "content",
                  "type": "string",
                  "description": "The contents of the message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "nullable",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "refusal",
                  "type": "string",
                  "description": "The refusal message generated by the model.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "nullable",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "tool_calls",
                  "type": "$$array",
                  "description": "The tool calls generated by the model, such as function calls.",
                  "meta": [],
                  "properties": [
                    {
                      "name": "",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionMessageToolCall",
                        "canonical": "objects/ChatCompletionMessageToolCall",
                        "label": "ChatCompletionMessageToolCall"
                      },
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The ID of the tool call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the tool. Currently, only `function` is supported.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "The function that the model called.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "arguments",
                              "type": "string",
                              "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                    "canonical": "objects/ChatCompletionMessageToolCalls",
                    "label": "ChatCompletionMessageToolCalls"
                  }
                },
                {
                  "name": "annotations",
                  "type": "$$array",
                  "description": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n",
                  "meta": [],
                  "properties": [
                    {
                      "name": "",
                      "type": "object",
                      "description": "A URL citation when using web search.\n",
                      "meta": [],
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the URL citation. Always `url_citation`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "url_citation"
                            }
                          ],
                          "properties": [
                            {
                              "name": "url_citation",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "url_citation",
                          "type": "object",
                          "description": "A URL citation when using web search.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "end_index",
                              "type": "integer",
                              "description": "The index of the last character of the URL citation in the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "start_index",
                              "type": "integer",
                              "description": "The index of the first character of the URL citation in the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "url",
                              "type": "string",
                              "description": "The URL of the web resource.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "title",
                              "type": "string",
                              "description": "The title of the web resource.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "role",
                  "type": "$$enum",
                  "description": "The role of the author of this message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    },
                    {
                      "name": "const",
                      "value": "assistant"
                    }
                  ],
                  "properties": [
                    {
                      "name": "assistant",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "function_call",
                  "type": "object",
                  "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                  "meta": [
                    {
                      "name": "deprecated",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "arguments",
                      "type": "string",
                      "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to call.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "audio",
                  "type": "object",
                  "description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n",
                  "meta": [
                    {
                      "name": "nullable",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "Unique identifier for this audio response.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "expires_at",
                      "type": "integer",
                      "description": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "data",
                      "type": "string",
                      "description": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "transcript",
                      "type": "string",
                      "description": "Transcript of the audio generated by the model.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "id",
                  "type": "string",
                  "description": "The identifier of the chat message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ],
              "symbolDef": {
                "id": "#/components/schemas/ChatCompletionResponseMessage",
                "canonical": "objects/ChatCompletionResponseMessage",
                "label": "ChatCompletionResponseMessage"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/ChatCompletionResponseMessage",
              "canonical": "objects/ChatCompletionResponseMessage",
              "label": "ChatCompletionResponseMessage"
            }
          },
          {
            "name": "first_id",
            "type": "string",
            "description": "The identifier of the first chat message in the data array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "last_id",
            "type": "string",
            "description": "The identifier of the last chat message in the data array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "has_more",
            "type": "boolean",
            "description": "Indicates whether there are more chat messages available.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ChatCompletionMessageList",
          "canonical": "objects/ChatCompletionMessageList",
          "label": "list"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n      \"role\": \"user\",\n      \"content\": \"write a haiku about ai\",\n      \"name\": null,\n      \"content_parts\": null\n    }\n  ],\n  \"first_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n  \"last_id\": \"chatcmpl-AyPNinnUqUDYo9SAdA52NobMflmj2-0\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ChatCompletionMessageList",
      "group": [
        "Chat Completions",
        "Chat Completions"
      ]
    }
  },
  {
    "title": "The chat completion chunk object",
    "description": "Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input. \n[Learn more](/docs/guides/streaming-responses).\n",
    "canonical": "chat-streaming/streaming",
    "definitions": [
      {
        "title": "CreateChatCompletionStreamResponse",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "A unique identifier for the chat completion. Each chunk has the same ID.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "choices",
            "type": "$$array",
            "description": "A list of chat completion choices. Can contain more than one elements if `n` is greater than 1. Can also be empty for the\nlast chunk if you set `stream_options: {\"include_usage\": true}`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "delta",
                  "type": "object",
                  "description": "A chat completion delta generated by streamed model responses.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionStreamResponseDelta",
                    "canonical": "objects/ChatCompletionStreamResponseDelta",
                    "label": "ChatCompletionStreamResponseDelta"
                  },
                  "properties": [
                    {
                      "name": "content",
                      "type": "string",
                      "description": "The contents of the chunk message.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "function_call",
                      "type": "object",
                      "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                      "meta": [
                        {
                          "name": "deprecated",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                          "meta": []
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "tool_calls",
                      "type": "$$array",
                      "description": "",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "index",
                            "type": "integer",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the tool call.",
                            "meta": []
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the tool. Currently, only `function` is supported.",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "function"
                              }
                            ],
                            "properties": [
                              {
                                "name": "function",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "function",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "properties": [
                              {
                                "name": "name",
                                "type": "string",
                                "description": "The name of the function to call.",
                                "meta": []
                              },
                              {
                                "name": "arguments",
                                "type": "string",
                                "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                "meta": []
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionMessageToolCallChunk",
                          "canonical": "objects/ChatCompletionMessageToolCallChunk",
                          "label": "ChatCompletionMessageToolCallChunk"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionMessageToolCallChunk",
                        "canonical": "objects/ChatCompletionMessageToolCallChunk",
                        "label": "ChatCompletionMessageToolCallChunk"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the author of this message.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "developer",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "system",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "tool",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "refusal",
                      "type": "string",
                      "description": "The refusal message generated by the model.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "logprobs",
                  "type": "object",
                  "description": "Log probability information for the choice.",
                  "meta": [
                    {
                      "name": "nullable",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "A list of message content tokens with log probability information.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "token",
                            "type": "string",
                            "description": "The token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "logprob",
                            "type": "number",
                            "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "bytes",
                            "type": "$$array",
                            "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "integer",
                              "properties": [],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "top_logprobs",
                            "type": "$$array",
                            "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "token",
                                  "type": "string",
                                  "description": "The token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "logprob",
                                  "type": "number",
                                  "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "bytes",
                                  "type": "$$array",
                                  "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "integer",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionTokenLogprob",
                          "canonical": "objects/ChatCompletionTokenLogprob",
                          "label": "ChatCompletionTokenLogprob"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionTokenLogprob",
                        "canonical": "objects/ChatCompletionTokenLogprob",
                        "label": "ChatCompletionTokenLogprob"
                      }
                    },
                    {
                      "name": "refusal",
                      "type": "$$array",
                      "description": "A list of message content tokens with log probability information.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "token",
                            "type": "string",
                            "description": "The token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "logprob",
                            "type": "number",
                            "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "bytes",
                            "type": "$$array",
                            "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "integer",
                              "properties": [],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "top_logprobs",
                            "type": "$$array",
                            "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "token",
                                  "type": "string",
                                  "description": "The token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "logprob",
                                  "type": "number",
                                  "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "bytes",
                                  "type": "$$array",
                                  "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "integer",
                                    "properties": [],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionTokenLogprob",
                          "canonical": "objects/ChatCompletionTokenLogprob",
                          "label": "ChatCompletionTokenLogprob"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionTokenLogprob",
                        "canonical": "objects/ChatCompletionTokenLogprob",
                        "label": "ChatCompletionTokenLogprob"
                      }
                    }
                  ]
                },
                {
                  "name": "finish_reason",
                  "type": "$$enum",
                  "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "nullable",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "stop",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "length",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "tool_calls",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "content_filter",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "function_call",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "index",
                  "type": "integer",
                  "description": "The index of the choice in the list of choices.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "created",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model to generate the completion.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "service_tier",
            "type": "$$enum",
            "description": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n  - If set to 'auto', and the Project is Scale tier enabled, the system\n    will utilize scale tier credits until they are exhausted.\n  - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.\n  - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n  - When not set, the default behavior is 'auto'.\n\n  When this parameter is set, the response body will include the `service_tier` utilized.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "auto"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "auto",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "default",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "flex",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            },
            "symbolDef": {
              "id": "#/components/schemas/ServiceTier",
              "canonical": "objects/ServiceTier",
              "label": "ServiceTier"
            }
          },
          {
            "name": "system_fingerprint",
            "type": "string",
            "description": "This fingerprint represents the backend configuration that the model runs with.\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n",
            "meta": []
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `chat.completion.chunk`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "chat.completion.chunk"
              }
            ],
            "properties": [
              {
                "name": "chat.completion.chunk",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "usage",
            "type": "object",
            "description": "Usage statistics for the completion request.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "completion_tokens",
                "type": "integer",
                "description": "Number of tokens in the generated completion.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "prompt_tokens",
                "type": "integer",
                "description": "Number of tokens in the prompt.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "Total number of tokens used in the request (prompt + completion).",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "completion_tokens_details",
                "type": "object",
                "description": "Breakdown of tokens used in a completion.",
                "meta": [],
                "properties": [
                  {
                    "name": "accepted_prediction_tokens",
                    "type": "integer",
                    "description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "audio_tokens",
                    "type": "integer",
                    "description": "Audio input tokens generated by the model.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "reasoning_tokens",
                    "type": "integer",
                    "description": "Tokens generated by the model for reasoning.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "rejected_prediction_tokens",
                    "type": "integer",
                    "description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  }
                ]
              },
              {
                "name": "prompt_tokens_details",
                "type": "object",
                "description": "Breakdown of tokens used in the prompt.",
                "meta": [],
                "properties": [
                  {
                    "name": "audio_tokens",
                    "type": "integer",
                    "description": "Audio input tokens present in the prompt.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "cached_tokens",
                    "type": "integer",
                    "description": "Cached tokens present in the prompt.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CreateChatCompletionStreamResponse",
          "canonical": "objects/CreateChatCompletionStreamResponse",
          "label": "chat.completion.chunk"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"},\"logprobs\":null,\"finish_reason\":null}]}\n\n{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hello\"},\"logprobs\":null,\"finish_reason\":null}]}\n\n....\n\n{\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1694268190,\"model\":\"gpt-4o-mini\", \"system_fingerprint\": \"fp_44709d6fcb\", \"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"stop\"}]}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CreateChatCompletionStreamResponse",
      "group": [
        "Chat Completions",
        "Streaming"
      ]
    }
  },
  {
    "title": "Create session",
    "canonical": "realtime-sessions/create",
    "description": "Create an ephemeral API token for use in client-side applications with the\nRealtime API. Can be configured with the same session parameters as the\n`session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/realtime/sessions",
      "group": [
        "Realtime",
        "Session tokens"
      ],
      "fullPath": "https://api.openai.com/v1/realtime/sessions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/realtime/sessions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"gpt-4o-realtime-preview\",\n    \"modalities\": [\"audio\", \"text\"],\n    \"instructions\": \"You are a friendly assistant.\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"sess_001\",\n  \"object\": \"realtime.session\",\n  \"model\": \"gpt-4o-realtime-preview\",\n  \"modalities\": [\"audio\", \"text\"],\n  \"instructions\": \"You are a friendly assistant.\",\n  \"voice\": \"alloy\",\n  \"input_audio_format\": \"pcm16\",\n  \"output_audio_format\": \"pcm16\",\n  \"input_audio_transcription\": {\n      \"model\": \"whisper-1\"\n  },\n  \"turn_detection\": null,\n  \"tools\": [],\n  \"tool_choice\": \"none\",\n  \"temperature\": 0.7,\n  \"max_response_output_tokens\": 200,\n  \"client_secret\": {\n    \"value\": \"ek_abc123\", \n    \"expires_at\": 1234567890\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "Realtime session object configuration.",
            "properties": [
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "model",
                "type": "$$enum",
                "description": "The Realtime model used for this session.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "gpt-4o-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-10-01",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The default system instructions (i.e. system message) prepended to model  calls. This field allows the client to guide the model on desired  responses. The model can be instructed on response content and format,  (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good  responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion  into your voice\", \"laugh frequently\"). The instructions are not guaranteed  to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this  field is not set and are visible in the `session.created` event at the  start of the session.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model uses to respond. Voice cannot be changed during the \nsession once the model has responded with audio at least once. Current \nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "input_audio_format",
                "type": "$$enum",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, \nsingle channel (mono), and little-endian byte order.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, output audio is sampled at a rate of 24kHz.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration for input audio transcription, defaults to off and can be  set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs  asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n",
                    "meta": []
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of turn detection.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "server_vad"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "semantic_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "eagerness",
                    "type": "$$enum",
                    "description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  },
                  {
                    "name": "create_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically generate a response when a VAD stop event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  },
                  {
                    "name": "interrupt_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  }
                ]
              },
              {
                "name": "input_audio_noise_reduction",
                "type": "object",
                "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  }
                ],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "near_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "far_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Tools (functions) available to the model.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool, i.e. `function`.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function.",
                      "meta": []
                    },
                    {
                      "name": "description",
                      "type": "string",
                      "description": "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n",
                      "meta": []
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "Parameters of the function in JSON Schema.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_choice",
                "type": "string",
                "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or \nspecify a function.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0.8
                  }
                ]
              },
              {
                "name": "max_response_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n",
                "properties": [
                  {
                    "name": "max_response_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_response_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeSessionCreateRequest",
              "canonical": "objects/RealtimeSessionCreateRequest",
              "label": "RealtimeSessionCreateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created Realtime session object, plus an ephemeral key",
        "properties": []
      }
    ]
  },
  {
    "title": "Create transcription session",
    "canonical": "realtime-sessions/create-transcription",
    "description": "Create an ephemeral API token for use in client-side applications with the\nRealtime API specifically for realtime transcriptions. \nCan be configured with the same session parameters as the `transcription_session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/realtime/transcription_sessions",
      "group": [
        "Realtime",
        "Session tokens"
      ],
      "fullPath": "https://api.openai.com/v1/realtime/transcription_sessions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/realtime/transcription_sessions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"sess_BBwZc7cFV3XizEyKGDCGL\",\n  \"object\": \"realtime.transcription_session\",\n  \"modalities\": [\"audio\", \"text\"],\n  \"turn_detection\": {\n    \"type\": \"server_vad\",\n    \"threshold\": 0.5,\n    \"prefix_padding_ms\": 300,\n    \"silence_duration_ms\": 200\n  },\n  \"input_audio_format\": \"pcm16\",\n  \"input_audio_transcription\": {\n    \"model\": \"gpt-4o-transcribe\",\n    \"language\": null,\n    \"prompt\": \"\"\n  },\n  \"client_secret\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "Realtime transcription session object configuration.",
            "properties": [
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "input_audio_format",
                "type": "$$enum",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, \nsingle channel (mono), and little-endian byte order.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4o-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "whisper-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of turn detection.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "server_vad"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "semantic_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "eagerness",
                    "type": "$$enum",
                    "description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  },
                  {
                    "name": "create_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically generate a response when a VAD stop event occurs. Not available for transcription sessions.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  },
                  {
                    "name": "interrupt_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs. Not available for transcription sessions.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  }
                ]
              },
              {
                "name": "input_audio_noise_reduction",
                "type": "object",
                "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  }
                ],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "near_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "far_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "include",
                "type": "$$array",
                "description": "The set of items to include in the transcription. Current available items are:\n- `item.input_audio_transcription.logprobs`\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": []
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeTranscriptionSessionCreateRequest",
              "canonical": "objects/RealtimeTranscriptionSessionCreateRequest",
              "label": "RealtimeTranscriptionSessionCreateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [Realtime transcription session object](/docs/api-reference/realtime-sessions/transcription_session_object), plus an ephemeral key",
        "properties": []
      }
    ]
  },
  {
    "title": "The session object",
    "description": "A new Realtime session configuration, with an ephermeral key. Default TTL\nfor keys is one minute.\n",
    "canonical": "realtime-sessions/session_object",
    "definitions": [
      {
        "title": "RealtimeSessionCreateResponse",
        "properties": [
          {
            "name": "client_secret",
            "type": "object",
            "description": "Ephemeral key returned by the API.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "value",
                "type": "string",
                "description": "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "expires_at",
                "type": "integer",
                "description": "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "modalities",
            "type": "object",
            "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
            "meta": []
          },
          {
            "name": "instructions",
            "type": "string",
            "description": "The default system instructions (i.e. system message) prepended to model \ncalls. This field allows the client to guide the model on desired \nresponses. The model can be instructed on response content and format, \n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good \nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion \ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed \nto be followed by the model, but they provide guidance to the model on the \ndesired behavior.\n\nNote that the server sets default instructions which will be used if this \nfield is not set and are visible in the `session.created` event at the \nstart of the session.\n",
            "meta": []
          },
          {
            "name": "voice",
            "type": "$$union",
            "description": "The voice the model uses to respond. Voice cannot be changed during the \nsession once the model has responded with audio at least once. Current \nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo` `sage`, \n`shimmer` and `verse`.\n",
            "properties": [
              {
                "name": "voice",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$enum",
                "description": "",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "alloy",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "ash",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "ballad",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "coral",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "echo",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "fable",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "onyx",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "nova",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "sage",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "shimmer",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "verse",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ]
          },
          {
            "name": "input_audio_format",
            "type": "string",
            "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
            "meta": []
          },
          {
            "name": "output_audio_format",
            "type": "string",
            "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
            "meta": []
          },
          {
            "name": "input_audio_transcription",
            "type": "object",
            "description": "Configuration for input audio transcription, defaults to off and can be \nset to `null` to turn off once on. Input audio transcription is not native \nto the model, since the model consumes audio directly. Transcription runs \nasynchronously through Whisper and should be treated as rough guidance \nrather than the representation understood by the model.\n",
            "meta": [],
            "properties": [
              {
                "name": "model",
                "type": "string",
                "description": "The model to use for transcription, `whisper-1` is the only currently \nsupported model.\n",
                "meta": []
              }
            ]
          },
          {
            "name": "turn_detection",
            "type": "object",
            "description": "Configuration for turn detection. Can be set to `null` to turn off. Server \nVAD means that the model will detect the start and end of speech based on \naudio volume and respond at the end of user speech.\n",
            "meta": [],
            "properties": [
              {
                "name": "type",
                "type": "string",
                "description": "Type of turn detection, only `server_vad` is currently supported.\n",
                "meta": []
              },
              {
                "name": "threshold",
                "type": "number",
                "description": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                "meta": []
              },
              {
                "name": "prefix_padding_ms",
                "type": "integer",
                "description": "Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                "meta": []
              },
              {
                "name": "silence_duration_ms",
                "type": "integer",
                "description": "Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                "meta": []
              }
            ]
          },
          {
            "name": "tools",
            "type": "$$array",
            "description": "Tools (functions) available to the model.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "type",
                  "type": "$$enum",
                  "description": "The type of the tool, i.e. `function`.",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    },
                    {
                      "name": "const",
                      "value": "function"
                    }
                  ],
                  "properties": [
                    {
                      "name": "function",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "name",
                  "type": "string",
                  "description": "The name of the function.",
                  "meta": []
                },
                {
                  "name": "description",
                  "type": "string",
                  "description": "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n",
                  "meta": []
                },
                {
                  "name": "parameters",
                  "type": "object",
                  "description": "Parameters of the function in JSON Schema.",
                  "meta": []
                }
              ],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "tool_choice",
            "type": "string",
            "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or \nspecify a function.\n",
            "meta": []
          },
          {
            "name": "temperature",
            "type": "number",
            "description": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n",
            "meta": []
          },
          {
            "name": "max_response_output_tokens",
            "type": "$$xor",
            "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n",
            "properties": [
              {
                "name": "max_response_output_tokens",
                "type": "integer",
                "description": "",
                "meta": []
              },
              {
                "name": "max_response_output_tokens",
                "type": "$$enum",
                "description": "",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "inf"
                  }
                ],
                "properties": [
                  {
                    "name": "inf",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ],
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeSessionCreateResponse",
          "canonical": "objects/RealtimeSessionCreateResponse",
          "label": "RealtimeSessionCreateResponse"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"sess_001\",\n  \"object\": \"realtime.session\",\n  \"model\": \"gpt-4o-realtime-preview\",\n  \"modalities\": [\"audio\", \"text\"],\n  \"instructions\": \"You are a friendly assistant.\",\n  \"voice\": \"alloy\",\n  \"input_audio_format\": \"pcm16\",\n  \"output_audio_format\": \"pcm16\",\n  \"input_audio_transcription\": {\n      \"model\": \"whisper-1\"\n  },\n  \"turn_detection\": null,\n  \"tools\": [],\n  \"tool_choice\": \"none\",\n  \"temperature\": 0.7,\n  \"max_response_output_tokens\": 200,\n  \"client_secret\": {\n    \"value\": \"ek_abc123\", \n    \"expires_at\": 1234567890\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeSessionCreateResponse",
      "group": [
        "Realtime",
        "Session tokens"
      ]
    }
  },
  {
    "title": "The transcription session object",
    "description": "A new Realtime transcription session configuration.\n\nWhen a session is created on the server via REST API, the session object\nalso contains an ephemeral key. Default TTL for keys is one minute. This \nproperty is not present when a session is updated via the WebSocket API.\n",
    "canonical": "realtime-sessions/transcription_session_object",
    "definitions": [
      {
        "title": "RealtimeTranscriptionSessionCreateResponse",
        "properties": [
          {
            "name": "client_secret",
            "type": "object",
            "description": "Ephemeral key returned by the API. Only present when the session is\ncreated on the server via REST API.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "value",
                "type": "string",
                "description": "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "expires_at",
                "type": "integer",
                "description": "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "modalities",
            "type": "object",
            "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
            "meta": []
          },
          {
            "name": "input_audio_format",
            "type": "string",
            "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
            "meta": []
          },
          {
            "name": "input_audio_transcription",
            "type": "object",
            "description": "Configuration of the transcription model.\n",
            "meta": [],
            "properties": [
              {
                "name": "model",
                "type": "$$enum",
                "description": "The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "gpt-4o-transcribe",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-transcribe",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "whisper-1",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "language",
                "type": "string",
                "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                "meta": []
              },
              {
                "name": "prompt",
                "type": "string",
                "description": "An optional text to guide the model's style or continue a previous audio\nsegment. The [prompt](/docs/guides/speech-to-text#prompting) should match\nthe audio language.\n",
                "meta": []
              }
            ]
          },
          {
            "name": "turn_detection",
            "type": "object",
            "description": "Configuration for turn detection. Can be set to `null` to turn off. Server \nVAD means that the model will detect the start and end of speech based on \naudio volume and respond at the end of user speech.\n",
            "meta": [],
            "properties": [
              {
                "name": "type",
                "type": "string",
                "description": "Type of turn detection, only `server_vad` is currently supported.\n",
                "meta": []
              },
              {
                "name": "threshold",
                "type": "number",
                "description": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                "meta": []
              },
              {
                "name": "prefix_padding_ms",
                "type": "integer",
                "description": "Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                "meta": []
              },
              {
                "name": "silence_duration_ms",
                "type": "integer",
                "description": "Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeTranscriptionSessionCreateResponse",
          "canonical": "objects/RealtimeTranscriptionSessionCreateResponse",
          "label": "RealtimeTranscriptionSessionCreateResponse"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"sess_BBwZc7cFV3XizEyKGDCGL\",\n  \"object\": \"realtime.transcription_session\",\n  \"expires_at\": 1742188264,\n  \"modalities\": [\"audio\", \"text\"],\n  \"turn_detection\": {\n    \"type\": \"server_vad\",\n    \"threshold\": 0.5,\n    \"prefix_padding_ms\": 300,\n    \"silence_duration_ms\": 200\n  },\n  \"input_audio_format\": \"pcm16\",\n  \"input_audio_transcription\": {\n    \"model\": \"gpt-4o-transcribe\",\n    \"language\": null,\n    \"prompt\": \"\"\n  },\n  \"client_secret\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeTranscriptionSessionCreateResponse",
      "group": [
        "Realtime",
        "Session tokens"
      ]
    }
  },
  {
    "title": "session.update",
    "description": "Send this event to update the session’s default configuration.\nThe client may send this event at any time to update any field,\nexcept for `voice`. However, note that once a session has been\ninitialized with a particular `model`, it can’t be changed to\nanother model using `session.update`.\n\nWhen the server receives a `session.update`, it will respond\nwith a `session.updated` event showing the full, effective configuration.\nOnly the fields that are present are updated. To clear a field like\n`instructions`, pass an empty string.\n",
    "canonical": "objects/RealtimeClientEventSessionUpdate",
    "definitions": [
      {
        "title": "RealtimeClientEventSessionUpdate",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `session.update`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "session.update"
              }
            ],
            "properties": [
              {
                "name": "session.update",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "session",
            "type": "object",
            "description": "Realtime session object configuration.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeSessionCreateRequest",
              "canonical": "objects/RealtimeSessionCreateRequest",
              "label": "RealtimeSessionCreateRequest"
            },
            "properties": [
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "model",
                "type": "$$enum",
                "description": "The Realtime model used for this session.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "gpt-4o-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-10-01",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The default system instructions (i.e. system message) prepended to model  calls. This field allows the client to guide the model on desired  responses. The model can be instructed on response content and format,  (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good  responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion  into your voice\", \"laugh frequently\"). The instructions are not guaranteed  to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this  field is not set and are visible in the `session.created` event at the  start of the session.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model uses to respond. Voice cannot be changed during the \nsession once the model has responded with audio at least once. Current \nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "input_audio_format",
                "type": "$$enum",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, \nsingle channel (mono), and little-endian byte order.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, output audio is sampled at a rate of 24kHz.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration for input audio transcription, defaults to off and can be  set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs  asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n",
                    "meta": []
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of turn detection.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "server_vad"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "semantic_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "eagerness",
                    "type": "$$enum",
                    "description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  },
                  {
                    "name": "create_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically generate a response when a VAD stop event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  },
                  {
                    "name": "interrupt_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  }
                ]
              },
              {
                "name": "input_audio_noise_reduction",
                "type": "object",
                "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  }
                ],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "near_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "far_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Tools (functions) available to the model.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool, i.e. `function`.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function.",
                      "meta": []
                    },
                    {
                      "name": "description",
                      "type": "string",
                      "description": "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n",
                      "meta": []
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "Parameters of the function in JSON Schema.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_choice",
                "type": "string",
                "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or \nspecify a function.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0.8
                  }
                ]
              },
              {
                "name": "max_response_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n",
                "properties": [
                  {
                    "name": "max_response_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_response_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventSessionUpdate",
          "canonical": "objects/RealtimeClientEventSessionUpdate",
          "label": "RealtimeClientEventSessionUpdate"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_123\",\n    \"type\": \"session.update\",\n    \"session\": {\n        \"modalities\": [\"text\", \"audio\"],\n        \"instructions\": \"You are a helpful assistant.\",\n        \"voice\": \"sage\",\n        \"input_audio_format\": \"pcm16\",\n        \"output_audio_format\": \"pcm16\",\n        \"input_audio_transcription\": {\n            \"model\": \"whisper-1\"\n        },\n        \"turn_detection\": {\n            \"type\": \"server_vad\",\n            \"threshold\": 0.5,\n            \"prefix_padding_ms\": 300,\n            \"silence_duration_ms\": 500,\n            \"create_response\": true\n        },\n        \"tools\": [\n            {\n                \"type\": \"function\",\n                \"name\": \"get_weather\",\n                \"description\": \"Get the current weather...\",\n                \"parameters\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"location\": { \"type\": \"string\" }\n                    },\n                    \"required\": [\"location\"]\n                }\n            }\n        ],\n        \"tool_choice\": \"auto\",\n        \"temperature\": 0.8,\n        \"max_response_output_tokens\": \"inf\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventSessionUpdate",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.append",
    "description": "Send this event to append audio bytes to the input audio buffer. The audio \nbuffer is temporary storage you can write to and later commit. In Server VAD \nmode, the audio buffer is used to detect speech and the server will decide \nwhen to commit. When Server VAD is disabled, you must commit the audio buffer\nmanually.\n\nThe client may choose how much audio to place in each event up to a maximum \nof 15 MiB, for example streaming smaller chunks from the client may allow the \nVAD to be more responsive. Unlike made other client events, the server will \nnot send a confirmation response to this event.\n",
    "canonical": "objects/RealtimeClientEventInputAudioBufferAppend",
    "definitions": [
      {
        "title": "RealtimeClientEventInputAudioBufferAppend",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.append`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.append"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.append",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "audio",
            "type": "string",
            "description": "Base64-encoded audio bytes. This must be in the format specified by the \n`input_audio_format` field in the session configuration.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventInputAudioBufferAppend",
          "canonical": "objects/RealtimeClientEventInputAudioBufferAppend",
          "label": "RealtimeClientEventInputAudioBufferAppend"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_456\",\n    \"type\": \"input_audio_buffer.append\",\n    \"audio\": \"Base64EncodedAudioData\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventInputAudioBufferAppend",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.commit",
    "description": "Send this event to commit the user input audio buffer, which will create a \nnew user message item in the conversation. This event will produce an error \nif the input audio buffer is empty. When in Server VAD mode, the client does \nnot need to send this event, the server will commit the audio buffer \nautomatically.\n\nCommitting the input audio buffer will trigger input audio transcription \n(if enabled in session configuration), but it will not create a response \nfrom the model. The server will respond with an `input_audio_buffer.committed` \nevent.\n",
    "canonical": "objects/RealtimeClientEventInputAudioBufferCommit",
    "definitions": [
      {
        "title": "RealtimeClientEventInputAudioBufferCommit",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.commit`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.commit"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.commit",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventInputAudioBufferCommit",
          "canonical": "objects/RealtimeClientEventInputAudioBufferCommit",
          "label": "RealtimeClientEventInputAudioBufferCommit"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_789\",\n    \"type\": \"input_audio_buffer.commit\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventInputAudioBufferCommit",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.clear",
    "description": "Send this event to clear the audio bytes in the buffer. The server will \nrespond with an `input_audio_buffer.cleared` event.\n",
    "canonical": "objects/RealtimeClientEventInputAudioBufferClear",
    "definitions": [
      {
        "title": "RealtimeClientEventInputAudioBufferClear",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.clear`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.clear"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.clear",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventInputAudioBufferClear",
          "canonical": "objects/RealtimeClientEventInputAudioBufferClear",
          "label": "RealtimeClientEventInputAudioBufferClear"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_012\",\n    \"type\": \"input_audio_buffer.clear\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventInputAudioBufferClear",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "conversation.item.create",
    "description": "Add a new Item to the Conversation's context, including messages, function \ncalls, and function call responses. This event can be used both to populate a \n\"history\" of the conversation and to add new items mid-stream, but has the \ncurrent limitation that it cannot populate assistant audio messages.\n\nIf successful, the server will respond with a `conversation.item.created` \nevent, otherwise an `error` event will be sent.\n",
    "canonical": "objects/RealtimeClientEventConversationItemCreate",
    "definitions": [
      {
        "title": "RealtimeClientEventConversationItemCreate",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.create`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.create"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.create",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "previous_item_id",
            "type": "string",
            "description": "The ID of the preceding item after which the new item will be inserted. \nIf not set, the new item will be appended to the end of the conversation.\nIf set to `root`, the new item will be added to the beginning of the conversation.\nIf set to an existing ID, it allows an item to be inserted mid-conversation. If the\nID cannot be found, an error will be returned and the item will not be added.\n",
            "meta": []
          },
          {
            "name": "item",
            "type": "object",
            "description": "The item to add to the conversation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeConversationItem",
              "canonical": "objects/RealtimeConversationItem",
              "label": "realtime.item"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                "meta": []
              },
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "message",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.item"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.item",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "system",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$array",
                "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "input_audio",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "input_text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "item_reference",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "text",
                      "type": "string",
                      "description": "The text content, used for `input_text` and `text` content types.\n",
                      "meta": []
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                      "meta": []
                    },
                    {
                      "name": "transcript",
                      "type": "string",
                      "description": "The transcript of the audio, used for `input_audio` content type.\n",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "call_id",
                "type": "string",
                "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the function being called (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "arguments",
                "type": "string",
                "description": "The arguments of the function call (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "output",
                "type": "string",
                "description": "The output of the function call (for `function_call_output` items).\n",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventConversationItemCreate",
          "canonical": "objects/RealtimeClientEventConversationItemCreate",
          "label": "RealtimeClientEventConversationItemCreate"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_345\",\n    \"type\": \"conversation.item.create\",\n    \"previous_item_id\": null,\n    \"item\": {\n        \"id\": \"msg_001\",\n        \"type\": \"message\",\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"input_text\",\n                \"text\": \"Hello, how are you?\"\n            }\n        ]\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventConversationItemCreate",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "conversation.item.retrieve",
    "description": "Send this event when you want to retrieve the server's representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.\nThe server will respond with a `conversation.item.retrieved` event, \nunless the item does not exist in the conversation history, in which case the \nserver will respond with an error.\n",
    "canonical": "objects/RealtimeClientEventConversationItemRetrieve",
    "definitions": [
      {
        "title": "RealtimeClientEventConversationItemRetrieve",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.retrieve`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.retrieve"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.retrieve",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventConversationItemRetrieve",
          "canonical": "objects/RealtimeClientEventConversationItemRetrieve",
          "label": "RealtimeClientEventConversationItemRetrieve"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_901\",\n    \"type\": \"conversation.item.retrieve\",\n    \"item_id\": \"msg_003\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventConversationItemRetrieve",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "conversation.item.truncate",
    "description": "Send this event to truncate a previous assistant message’s audio. The server \nwill produce audio faster than realtime, so this event is useful when the user \ninterrupts to truncate audio that has already been sent to the client but not \nyet played. This will synchronize the server's understanding of the audio with \nthe client's playback.\n\nTruncating audio will delete the server-side text transcript to ensure there \nis not text in the context that hasn't been heard by the user.\n\nIf successful, the server will respond with a `conversation.item.truncated` \nevent.\n",
    "canonical": "objects/RealtimeClientEventConversationItemTruncate",
    "definitions": [
      {
        "title": "RealtimeClientEventConversationItemTruncate",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.truncate`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.truncate"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.truncate",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the assistant message item to truncate. Only assistant message \nitems can be truncated.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part to truncate. Set this to 0.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "audio_end_ms",
            "type": "integer",
            "description": "Inclusive duration up to which audio is truncated, in milliseconds. If \nthe audio_end_ms is greater than the actual audio duration, the server \nwill respond with an error.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventConversationItemTruncate",
          "canonical": "objects/RealtimeClientEventConversationItemTruncate",
          "label": "RealtimeClientEventConversationItemTruncate"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_678\",\n    \"type\": \"conversation.item.truncate\",\n    \"item_id\": \"msg_002\",\n    \"content_index\": 0,\n    \"audio_end_ms\": 1500\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventConversationItemTruncate",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "conversation.item.delete",
    "description": "Send this event when you want to remove any item from the conversation \nhistory. The server will respond with a `conversation.item.deleted` event, \nunless the item does not exist in the conversation history, in which case the \nserver will respond with an error.\n",
    "canonical": "objects/RealtimeClientEventConversationItemDelete",
    "definitions": [
      {
        "title": "RealtimeClientEventConversationItemDelete",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.delete`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.delete"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.delete",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventConversationItemDelete",
          "canonical": "objects/RealtimeClientEventConversationItemDelete",
          "label": "RealtimeClientEventConversationItemDelete"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_901\",\n    \"type\": \"conversation.item.delete\",\n    \"item_id\": \"msg_003\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventConversationItemDelete",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "response.create",
    "description": "This event instructs the server to create a Response, which means triggering \nmodel inference. When in Server VAD mode, the server will create Responses \nautomatically.\n\nA Response will include at least one Item, and may have two, in which case \nthe second will be a function call. These Items will be appended to the \nconversation history.\n\nThe server will respond with a `response.created` event, events for Items \nand content created, and finally a `response.done` event to indicate the \nResponse is complete.\n\nThe `response.create` event includes inference configuration like \n`instructions`, and `temperature`. These fields will override the Session's \nconfiguration for this Response only.\n",
    "canonical": "objects/RealtimeClientEventResponseCreate",
    "definitions": [
      {
        "title": "RealtimeClientEventResponseCreate",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.create`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.create"
              }
            ],
            "properties": [
              {
                "name": "response.create",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "Create a new Realtime response with these parameters",
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeResponseCreateParams",
              "canonical": "objects/RealtimeResponseCreateParams",
              "label": "RealtimeResponseCreateParams"
            },
            "properties": [
              {
                "name": "modalities",
                "type": "$$array",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "text",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                }
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The default system instructions (i.e. system message) prepended to model \ncalls. This field allows the client to guide the model on desired \nresponses. The model can be instructed on response content and format, \n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good \nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion \ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed \nto be followed by the model, but they provide guidance to the model on the \ndesired behavior.\n\nNote that the server sets default instructions which will be used if this \nfield is not set and are visible in the `session.created` event at the \nstart of the session.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model uses to respond. Voice cannot be changed during the \nsession once the model has responded with audio at least once. Current \nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Tools (functions) available to the model.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool, i.e. `function`.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function.",
                      "meta": []
                    },
                    {
                      "name": "description",
                      "type": "string",
                      "description": "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n",
                      "meta": []
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "Parameters of the function in JSON Schema.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_choice",
                "type": "string",
                "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or \nspecify a function, like `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}`.\n",
                "meta": []
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n",
                "meta": []
              },
              {
                "name": "max_response_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n",
                "properties": [
                  {
                    "name": "max_response_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_response_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              },
              {
                "name": "conversation",
                "type": "$$xor",
                "description": "Controls which conversation the response is added to. Currently supports\n`auto` and `none`, with `auto` as the default value. The `auto` value\nmeans that the contents of the response will be added to the default\nconversation. Set this to `none` to create an out-of-band response which \nwill not add items to default conversation.\n",
                "properties": [
                  {
                    "name": "conversation",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "conversation",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "none",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "input",
                "type": "$$array",
                "description": "Input items to include in the prompt for the model. Using this field\ncreates a new context for this Response instead of using the default\nconversation. An empty array `[]` will clear the context for this Response.\nNote that this can include references to items from the default conversation.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "For an item of type (`message` | `function_call` | `function_call_output`)\nthis field allows the client to assign the unique ID of the item. It is\nnot required because the server will generate one if not provided.\n\nFor an item of type `item_reference`, this field is required and is a\nreference to any item that has previously existed in the conversation.\n",
                      "meta": []
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the item (`message`, `function_call`, `function_call_output`, `item_reference`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "message",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "function_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "function_call_output",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "object",
                      "type": "$$enum",
                      "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "realtime.item"
                        }
                      ],
                      "properties": [
                        {
                          "name": "realtime.item",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "system",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "input_audio",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "input_text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text content, used for `input_text` and `text` content types.\n",
                            "meta": []
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                            "meta": []
                          },
                          {
                            "name": "audio",
                            "type": "string",
                            "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                            "meta": []
                          },
                          {
                            "name": "transcript",
                            "type": "string",
                            "description": "The transcript of the audio, used for `input_audio` content type.\n",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function being called (for `function_call` items).\n",
                      "meta": []
                    },
                    {
                      "name": "arguments",
                      "type": "string",
                      "description": "The arguments of the function call (for `function_call` items).\n",
                      "meta": []
                    },
                    {
                      "name": "output",
                      "type": "string",
                      "description": "The output of the function call (for `function_call_output` items).\n",
                      "meta": []
                    }
                  ],
                  "description": "The item to add to the conversation.",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/RealtimeConversationItemWithReference",
                    "canonical": "objects/RealtimeConversationItemWithReference",
                    "label": "realtime.item"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/RealtimeConversationItemWithReference",
                  "canonical": "objects/RealtimeConversationItemWithReference",
                  "label": "realtime.item"
                }
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventResponseCreate",
          "canonical": "objects/RealtimeClientEventResponseCreate",
          "label": "RealtimeClientEventResponseCreate"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_234\",\n    \"type\": \"response.create\",\n    \"response\": {\n        \"modalities\": [\"text\", \"audio\"],\n        \"instructions\": \"Please assist the user.\",\n        \"voice\": \"sage\",\n        \"output_audio_format\": \"pcm16\",\n        \"tools\": [\n            {\n                \"type\": \"function\",\n                \"name\": \"calculate_sum\",\n                \"description\": \"Calculates the sum of two numbers.\",\n                \"parameters\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"a\": { \"type\": \"number\" },\n                        \"b\": { \"type\": \"number\" }\n                    },\n                    \"required\": [\"a\", \"b\"]\n                }\n            }\n        ],\n        \"tool_choice\": \"auto\",\n        \"temperature\": 0.8,\n        \"max_output_tokens\": 1024\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventResponseCreate",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "response.cancel",
    "description": "Send this event to cancel an in-progress response. The server will respond \nwith a `response.cancelled` event or an error if there is no response to \ncancel.\n",
    "canonical": "objects/RealtimeClientEventResponseCancel",
    "definitions": [
      {
        "title": "RealtimeClientEventResponseCancel",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.cancel`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.cancel"
              }
            ],
            "properties": [
              {
                "name": "response.cancel",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "A specific response ID to cancel - if not provided, will cancel an \nin-progress response in the default conversation.\n",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventResponseCancel",
          "canonical": "objects/RealtimeClientEventResponseCancel",
          "label": "RealtimeClientEventResponseCancel"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_567\",\n    \"type\": \"response.cancel\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventResponseCancel",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "transcription_session.update",
    "description": "Send this event to update a transcription session.\n",
    "canonical": "objects/RealtimeClientEventTranscriptionSessionUpdate",
    "definitions": [
      {
        "title": "RealtimeClientEventTranscriptionSessionUpdate",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "Optional client-generated ID used to identify this event.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `transcription_session.update`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "transcription_session.update"
              }
            ],
            "properties": [
              {
                "name": "transcription_session.update",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "session",
            "type": "object",
            "description": "Realtime transcription session object configuration.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeTranscriptionSessionCreateRequest",
              "canonical": "objects/RealtimeTranscriptionSessionCreateRequest",
              "label": "RealtimeTranscriptionSessionCreateRequest"
            },
            "properties": [
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "input_audio_format",
                "type": "$$enum",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, \nsingle channel (mono), and little-endian byte order.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4o-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "whisper-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of turn detection.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "server_vad"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "semantic_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "eagerness",
                    "type": "$$enum",
                    "description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  },
                  {
                    "name": "create_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically generate a response when a VAD stop event occurs. Not available for transcription sessions.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  },
                  {
                    "name": "interrupt_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs. Not available for transcription sessions.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  }
                ]
              },
              {
                "name": "input_audio_noise_reduction",
                "type": "object",
                "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  }
                ],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "near_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "far_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "include",
                "type": "$$array",
                "description": "The set of items to include in the transcription. Current available items are:\n- `item.input_audio_transcription.logprobs`\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": []
                }
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventTranscriptionSessionUpdate",
          "canonical": "objects/RealtimeClientEventTranscriptionSessionUpdate",
          "label": "RealtimeClientEventTranscriptionSessionUpdate"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"transcription_session.update\",\n  \"session\": {\n    \"input_audio_format\": \"pcm16\",\n    \"input_audio_transcription\": {\n      \"model\": \"gpt-4o-transcribe\",\n      \"prompt\": \"\",\n      \"language\": \"\"\n    },\n    \"turn_detection\": {\n      \"type\": \"server_vad\",\n      \"threshold\": 0.5,\n      \"prefix_padding_ms\": 300,\n      \"silence_duration_ms\": 500,\n      \"create_response\": true,\n    },\n    \"input_audio_noise_reduction\": {\n      \"type\": \"near_field\"\n    },\n    \"include\": [\n      \"item.input_audio_transcription.logprobs\",\n    ]\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventTranscriptionSessionUpdate",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "output_audio_buffer.clear",
    "description": "**WebRTC Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This \nevent should be preceded by a `response.cancel` client event to stop the \ngeneration of the current response.\n[Learn more](/docs/guides/realtime-model-capabilities#client-and-server-events-for-audio-in-webrtc).\n",
    "canonical": "objects/RealtimeClientEventOutputAudioBufferClear",
    "definitions": [
      {
        "title": "RealtimeClientEventOutputAudioBufferClear",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the client event used for error handling.",
            "meta": []
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `output_audio_buffer.clear`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "output_audio_buffer.clear"
              }
            ],
            "properties": [
              {
                "name": "output_audio_buffer.clear",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeClientEventOutputAudioBufferClear",
          "canonical": "objects/RealtimeClientEventOutputAudioBufferClear",
          "label": "RealtimeClientEventOutputAudioBufferClear"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"optional_client_event_id\",\n    \"type\": \"output_audio_buffer.clear\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeClientEventOutputAudioBufferClear",
      "group": [
        "Realtime",
        "Client events"
      ]
    }
  },
  {
    "title": "error",
    "description": "Returned when an error occurs, which could be a client problem or a server \nproblem. Most errors are recoverable and the session will stay open, we \nrecommend to implementors to monitor and log error messages by default.\n",
    "canonical": "objects/RealtimeServerEventError",
    "definitions": [
      {
        "title": "RealtimeServerEventError",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `error`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "error"
              }
            ],
            "properties": [
              {
                "name": "error",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "error",
            "type": "object",
            "description": "Details of the error.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "string",
                "description": "The type of error (e.g., \"invalid_request_error\", \"server_error\").\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "code",
                "type": "string",
                "description": "Error code, if any.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable error message.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "param",
                "type": "string",
                "description": "Parameter related to the error, if any.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "event_id",
                "type": "string",
                "description": "The event_id of the client event that caused the error, if applicable.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventError",
          "canonical": "objects/RealtimeServerEventError",
          "label": "RealtimeServerEventError"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_890\",\n    \"type\": \"error\",\n    \"error\": {\n        \"type\": \"invalid_request_error\",\n        \"code\": \"invalid_event\",\n        \"message\": \"The 'type' field is missing.\",\n        \"param\": null,\n        \"event_id\": \"event_567\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventError",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "session.created",
    "description": "Returned when a Session is created. Emitted automatically when a new \nconnection is established as the first server event. This event will contain \nthe default Session configuration.\n",
    "canonical": "objects/RealtimeServerEventSessionCreated",
    "definitions": [
      {
        "title": "RealtimeServerEventSessionCreated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `session.created`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "session.created"
              }
            ],
            "properties": [
              {
                "name": "session.created",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "session",
            "type": "object",
            "description": "Realtime session object configuration.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeSession",
              "canonical": "objects/RealtimeSession",
              "label": "RealtimeSession"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for the session that looks like `sess_1234567890abcdef`.\n",
                "meta": []
              },
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "model",
                "type": "$$enum",
                "description": "The Realtime model used for this session.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "gpt-4o-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-10-01",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The default system instructions (i.e. system message) prepended to model  calls. This field allows the client to guide the model on desired  responses. The model can be instructed on response content and format,  (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good  responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion  into your voice\", \"laugh frequently\"). The instructions are not guaranteed  to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this  field is not set and are visible in the `session.created` event at the  start of the session.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model uses to respond. Voice cannot be changed during the \nsession once the model has responded with audio at least once. Current \nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo` `sage`, \n`shimmer` and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "input_audio_format",
                "type": "$$enum",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, \nsingle channel (mono), and little-endian byte order.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, output audio is sampled at a rate of 24kHz.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration for input audio transcription, defaults to off and can be  set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs  asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n",
                    "meta": []
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of turn detection.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "server_vad"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "semantic_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "eagerness",
                    "type": "$$enum",
                    "description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  },
                  {
                    "name": "create_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically generate a response when a VAD stop event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  },
                  {
                    "name": "interrupt_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  }
                ]
              },
              {
                "name": "input_audio_noise_reduction",
                "type": "object",
                "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  }
                ],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "near_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "far_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Tools (functions) available to the model.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool, i.e. `function`.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function.",
                      "meta": []
                    },
                    {
                      "name": "description",
                      "type": "string",
                      "description": "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n",
                      "meta": []
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "Parameters of the function in JSON Schema.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_choice",
                "type": "string",
                "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or \nspecify a function.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0.8
                  }
                ]
              },
              {
                "name": "max_response_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n",
                "properties": [
                  {
                    "name": "max_response_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_response_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventSessionCreated",
          "canonical": "objects/RealtimeServerEventSessionCreated",
          "label": "RealtimeServerEventSessionCreated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1234\",\n    \"type\": \"session.created\",\n    \"session\": {\n        \"id\": \"sess_001\",\n        \"object\": \"realtime.session\",\n        \"model\": \"gpt-4o-realtime-preview\",\n        \"modalities\": [\"text\", \"audio\"],\n        \"instructions\": \"...model instructions here...\",\n        \"voice\": \"sage\",\n        \"input_audio_format\": \"pcm16\",\n        \"output_audio_format\": \"pcm16\",\n        \"input_audio_transcription\": null,\n        \"turn_detection\": {\n            \"type\": \"server_vad\",\n            \"threshold\": 0.5,\n            \"prefix_padding_ms\": 300,\n            \"silence_duration_ms\": 200\n        },\n        \"tools\": [],\n        \"tool_choice\": \"auto\",\n        \"temperature\": 0.8,\n        \"max_response_output_tokens\": \"inf\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventSessionCreated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "session.updated",
    "description": "Returned when a session is updated with a `session.update` event, unless \nthere is an error.\n",
    "canonical": "objects/RealtimeServerEventSessionUpdated",
    "definitions": [
      {
        "title": "RealtimeServerEventSessionUpdated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `session.updated`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "session.updated"
              }
            ],
            "properties": [
              {
                "name": "session.updated",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "session",
            "type": "object",
            "description": "Realtime session object configuration.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeSession",
              "canonical": "objects/RealtimeSession",
              "label": "RealtimeSession"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "Unique identifier for the session that looks like `sess_1234567890abcdef`.\n",
                "meta": []
              },
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "model",
                "type": "$$enum",
                "description": "The Realtime model used for this session.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "gpt-4o-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-10-01",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "gpt-4o-mini-realtime-preview-2024-12-17",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The default system instructions (i.e. system message) prepended to model  calls. This field allows the client to guide the model on desired  responses. The model can be instructed on response content and format,  (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good  responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion  into your voice\", \"laugh frequently\"). The instructions are not guaranteed  to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this  field is not set and are visible in the `session.created` event at the  start of the session.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model uses to respond. Voice cannot be changed during the \nsession once the model has responded with audio at least once. Current \nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo` `sage`, \n`shimmer` and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "input_audio_format",
                "type": "$$enum",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, \nsingle channel (mono), and little-endian byte order.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, output audio is sampled at a rate of 24kHz.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "pcm16"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration for input audio transcription, defaults to off and can be  set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs  asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.\n",
                    "meta": []
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of turn detection.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "server_vad"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "server_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "semantic_vad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "eagerness",
                    "type": "$$enum",
                    "description": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "low",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "medium",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "high",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  },
                  {
                    "name": "create_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically generate a response when a VAD stop event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  },
                  {
                    "name": "interrupt_response",
                    "type": "boolean",
                    "description": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": true
                      }
                    ]
                  }
                ]
              },
              {
                "name": "input_audio_noise_reduction",
                "type": "object",
                "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  }
                ],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "near_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "far_field",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Tools (functions) available to the model.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool, i.e. `function`.",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function.",
                      "meta": []
                    },
                    {
                      "name": "description",
                      "type": "string",
                      "description": "The description of the function, including guidance on when and how \nto call it, and guidance about what to tell the user when calling \n(if anything).\n",
                      "meta": []
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "Parameters of the function in JSON Schema.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_choice",
                "type": "string",
                "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or \nspecify a function.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0.8
                  }
                ]
              },
              {
                "name": "max_response_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n",
                "properties": [
                  {
                    "name": "max_response_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_response_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventSessionUpdated",
          "canonical": "objects/RealtimeServerEventSessionUpdated",
          "label": "RealtimeServerEventSessionUpdated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_5678\",\n    \"type\": \"session.updated\",\n    \"session\": {\n        \"id\": \"sess_001\",\n        \"object\": \"realtime.session\",\n        \"model\": \"gpt-4o-realtime-preview\",\n        \"modalities\": [\"text\"],\n        \"instructions\": \"New instructions\",\n        \"voice\": \"sage\",\n        \"input_audio_format\": \"pcm16\",\n        \"output_audio_format\": \"pcm16\",\n        \"input_audio_transcription\": {\n            \"model\": \"whisper-1\"\n        },\n        \"turn_detection\": null,\n        \"tools\": [],\n        \"tool_choice\": \"none\",\n        \"temperature\": 0.7,\n        \"max_response_output_tokens\": 200\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventSessionUpdated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.created",
    "description": "Returned when a conversation is created. Emitted right after session creation.\n",
    "canonical": "objects/RealtimeServerEventConversationCreated",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationCreated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.created`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.created"
              }
            ],
            "properties": [
              {
                "name": "conversation.created",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "conversation",
            "type": "object",
            "description": "The conversation resource.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the conversation.",
                "meta": []
              },
              {
                "name": "object",
                "type": "string",
                "description": "The object type, must be `realtime.conversation`.",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationCreated",
          "canonical": "objects/RealtimeServerEventConversationCreated",
          "label": "RealtimeServerEventConversationCreated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_9101\",\n    \"type\": \"conversation.created\",\n    \"conversation\": {\n        \"id\": \"conv_001\",\n        \"object\": \"realtime.conversation\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationCreated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.created",
    "description": "Returned when a conversation item is created. There are several scenarios that produce this event:\n  - The server is generating a Response, which if successful will produce \n    either one or two Items, which will be of type `message` \n    (role `assistant`) or type `function_call`.\n  - The input audio buffer has been committed, either by the client or the \n    server (in `server_vad` mode). The server will take the content of the \n    input audio buffer and add it to a new user message Item.\n  - The client has sent a `conversation.item.create` event to add a new Item \n    to the Conversation.\n",
    "canonical": "objects/RealtimeServerEventConversationItemCreated",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemCreated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.created`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.created"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.created",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "previous_item_id",
            "type": "string",
            "description": "The ID of the preceding item in the Conversation context, allows the \nclient to understand the order of the conversation.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item",
            "type": "object",
            "description": "The item to add to the conversation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeConversationItem",
              "canonical": "objects/RealtimeConversationItem",
              "label": "realtime.item"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                "meta": []
              },
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "message",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.item"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.item",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "system",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$array",
                "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "input_audio",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "input_text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "item_reference",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "text",
                      "type": "string",
                      "description": "The text content, used for `input_text` and `text` content types.\n",
                      "meta": []
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                      "meta": []
                    },
                    {
                      "name": "transcript",
                      "type": "string",
                      "description": "The transcript of the audio, used for `input_audio` content type.\n",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "call_id",
                "type": "string",
                "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the function being called (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "arguments",
                "type": "string",
                "description": "The arguments of the function call (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "output",
                "type": "string",
                "description": "The output of the function call (for `function_call_output` items).\n",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemCreated",
          "canonical": "objects/RealtimeServerEventConversationItemCreated",
          "label": "RealtimeServerEventConversationItemCreated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1920\",\n    \"type\": \"conversation.item.created\",\n    \"previous_item_id\": \"msg_002\",\n    \"item\": {\n        \"id\": \"msg_003\",\n        \"object\": \"realtime.item\",\n        \"type\": \"message\",\n        \"status\": \"completed\",\n        \"role\": \"user\",\n        \"content\": []\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemCreated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.retrieved",
    "description": "Returned when a conversation item is retrieved with `conversation.item.retrieve`.\n",
    "canonical": "objects/RealtimeServerEventConversationItemRetrieved",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemRetrieved",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.retrieved`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.retrieved"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.retrieved",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item",
            "type": "object",
            "description": "The item to add to the conversation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeConversationItem",
              "canonical": "objects/RealtimeConversationItem",
              "label": "realtime.item"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                "meta": []
              },
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "message",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.item"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.item",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "system",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$array",
                "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "input_audio",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "input_text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "item_reference",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "text",
                      "type": "string",
                      "description": "The text content, used for `input_text` and `text` content types.\n",
                      "meta": []
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                      "meta": []
                    },
                    {
                      "name": "transcript",
                      "type": "string",
                      "description": "The transcript of the audio, used for `input_audio` content type.\n",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "call_id",
                "type": "string",
                "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the function being called (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "arguments",
                "type": "string",
                "description": "The arguments of the function call (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "output",
                "type": "string",
                "description": "The output of the function call (for `function_call_output` items).\n",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemRetrieved",
          "canonical": "objects/RealtimeServerEventConversationItemRetrieved",
          "label": "RealtimeServerEventConversationItemRetrieved"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1920\",\n    \"type\": \"conversation.item.created\",\n    \"previous_item_id\": \"msg_002\",\n    \"item\": {\n        \"id\": \"msg_003\",\n        \"object\": \"realtime.item\",\n        \"type\": \"message\",\n        \"status\": \"completed\",\n        \"role\": \"user\",\n        \"content\": [\n            {\n                \"type\": \"input_audio\",\n                \"transcript\": \"hello how are you\",\n                \"audio\": \"base64encodedaudio==\"\n            }\n        ]\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemRetrieved",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.input_audio_transcription.completed",
    "description": "This event is the output of audio transcription for user audio written to the \nuser audio buffer. Transcription begins when the input audio buffer is \ncommitted by the client or server (in `server_vad` mode). Transcription runs \nasynchronously with Response creation, so this event may come before or after \nthe Response events.\n\nRealtime API models accept audio natively, and thus input transcription is a \nseparate process run on a separate ASR (Automatic Speech Recognition) model, \ncurrently always `whisper-1`. Thus the transcript may diverge somewhat from \nthe model's interpretation, and should be treated as a rough guide.\n",
    "canonical": "objects/RealtimeServerEventConversationItemInputAudioTranscriptionCompleted",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemInputAudioTranscriptionCompleted",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be\n`conversation.item.input_audio_transcription.completed`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.input_audio_transcription.completed"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.input_audio_transcription.completed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the user message item containing the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part containing the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "transcript",
            "type": "string",
            "description": "The transcribed text.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "logprobs",
            "type": "$$array",
            "description": "The log probabilities of the transcription.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "token",
                  "type": "string",
                  "description": "The token that was used to generate the log probability.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "logprob",
                  "type": "number",
                  "description": "The log probability of the token.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "bytes",
                  "type": "$$array",
                  "description": "The bytes that were used to generate the log probability.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [],
                  "ofProperty": {
                    "name": "",
                    "type": "integer",
                    "properties": [],
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                }
              ],
              "description": "A log probability object.\n",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/LogProbProperties",
                "canonical": "objects/LogProbProperties",
                "label": "LogProbProperties"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/LogProbProperties",
              "canonical": "objects/LogProbProperties",
              "label": "LogProbProperties"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemInputAudioTranscriptionCompleted",
          "canonical": "objects/RealtimeServerEventConversationItemInputAudioTranscriptionCompleted",
          "label": "RealtimeServerEventConversationItemInputAudioTranscriptionCompleted"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_2122\",\n    \"type\": \"conversation.item.input_audio_transcription.completed\",\n    \"item_id\": \"msg_003\",\n    \"content_index\": 0,\n    \"transcript\": \"Hello, how are you?\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemInputAudioTranscriptionCompleted",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.input_audio_transcription.delta",
    "description": "Returned when the text value of an input audio transcription content part is updated.\n",
    "canonical": "objects/RealtimeServerEventConversationItemInputAudioTranscriptionDelta",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemInputAudioTranscriptionDelta",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.input_audio_transcription.delta`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.input_audio_transcription.delta"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.input_audio_transcription.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": []
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The text delta.",
            "meta": []
          },
          {
            "name": "logprobs",
            "type": "$$array",
            "description": "The log probabilities of the transcription.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "token",
                  "type": "string",
                  "description": "The token that was used to generate the log probability.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "logprob",
                  "type": "number",
                  "description": "The log probability of the token.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "bytes",
                  "type": "$$array",
                  "description": "The bytes that were used to generate the log probability.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [],
                  "ofProperty": {
                    "name": "",
                    "type": "integer",
                    "properties": [],
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                }
              ],
              "description": "A log probability object.\n",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/LogProbProperties",
                "canonical": "objects/LogProbProperties",
                "label": "LogProbProperties"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/LogProbProperties",
              "canonical": "objects/LogProbProperties",
              "label": "LogProbProperties"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemInputAudioTranscriptionDelta",
          "canonical": "objects/RealtimeServerEventConversationItemInputAudioTranscriptionDelta",
          "label": "RealtimeServerEventConversationItemInputAudioTranscriptionDelta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"conversation.item.input_audio_transcription.delta\",\n  \"event_id\": \"event_001\",\n  \"item_id\": \"item_001\",\n  \"content_index\": 0,\n  \"delta\": \"Hello\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemInputAudioTranscriptionDelta",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.input_audio_transcription.failed",
    "description": "Returned when input audio transcription is configured, and a transcription \nrequest for a user message failed. These events are separate from other \n`error` events so that the client can identify the related Item.\n",
    "canonical": "objects/RealtimeServerEventConversationItemInputAudioTranscriptionFailed",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemInputAudioTranscriptionFailed",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be\n`conversation.item.input_audio_transcription.failed`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.input_audio_transcription.failed"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.input_audio_transcription.failed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the user message item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part containing the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "error",
            "type": "object",
            "description": "Details of the transcription error.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "string",
                "description": "The type of error.",
                "meta": []
              },
              {
                "name": "code",
                "type": "string",
                "description": "Error code, if any.",
                "meta": []
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable error message.",
                "meta": []
              },
              {
                "name": "param",
                "type": "string",
                "description": "Parameter related to the error, if any.",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemInputAudioTranscriptionFailed",
          "canonical": "objects/RealtimeServerEventConversationItemInputAudioTranscriptionFailed",
          "label": "RealtimeServerEventConversationItemInputAudioTranscriptionFailed"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_2324\",\n    \"type\": \"conversation.item.input_audio_transcription.failed\",\n    \"item_id\": \"msg_003\",\n    \"content_index\": 0,\n    \"error\": {\n        \"type\": \"transcription_error\",\n        \"code\": \"audio_unintelligible\",\n        \"message\": \"The audio could not be transcribed.\",\n        \"param\": null\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemInputAudioTranscriptionFailed",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.truncated",
    "description": "Returned when an earlier assistant audio message item is truncated by the \nclient with a `conversation.item.truncate` event. This event is used to \nsynchronize the server's understanding of the audio with the client's playback.\n\nThis action will truncate the audio and remove the server-side text transcript \nto ensure there is no text in the context that hasn't been heard by the user.\n",
    "canonical": "objects/RealtimeServerEventConversationItemTruncated",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemTruncated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.truncated`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.truncated"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.truncated",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the assistant message item that was truncated.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part that was truncated.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "audio_end_ms",
            "type": "integer",
            "description": "The duration up to which the audio was truncated, in milliseconds.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemTruncated",
          "canonical": "objects/RealtimeServerEventConversationItemTruncated",
          "label": "RealtimeServerEventConversationItemTruncated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_2526\",\n    \"type\": \"conversation.item.truncated\",\n    \"item_id\": \"msg_004\",\n    \"content_index\": 0,\n    \"audio_end_ms\": 1500\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemTruncated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "conversation.item.deleted",
    "description": "Returned when an item in the conversation is deleted by the client with a \n`conversation.item.delete` event. This event is used to synchronize the \nserver's understanding of the conversation history with the client's view.\n",
    "canonical": "objects/RealtimeServerEventConversationItemDeleted",
    "definitions": [
      {
        "title": "RealtimeServerEventConversationItemDeleted",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `conversation.item.deleted`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "conversation.item.deleted"
              }
            ],
            "properties": [
              {
                "name": "conversation.item.deleted",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item that was deleted.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventConversationItemDeleted",
          "canonical": "objects/RealtimeServerEventConversationItemDeleted",
          "label": "RealtimeServerEventConversationItemDeleted"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_2728\",\n    \"type\": \"conversation.item.deleted\",\n    \"item_id\": \"msg_005\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventConversationItemDeleted",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.committed",
    "description": "Returned when an input audio buffer is committed, either by the client or \nautomatically in server VAD mode. The `item_id` property is the ID of the user\nmessage item that will be created, thus a `conversation.item.created` event \nwill also be sent to the client.\n",
    "canonical": "objects/RealtimeServerEventInputAudioBufferCommitted",
    "definitions": [
      {
        "title": "RealtimeServerEventInputAudioBufferCommitted",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.committed`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.committed"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.committed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "previous_item_id",
            "type": "string",
            "description": "The ID of the preceding item after which the new item will be inserted.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the user message item that will be created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventInputAudioBufferCommitted",
          "canonical": "objects/RealtimeServerEventInputAudioBufferCommitted",
          "label": "RealtimeServerEventInputAudioBufferCommitted"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1121\",\n    \"type\": \"input_audio_buffer.committed\",\n    \"previous_item_id\": \"msg_001\",\n    \"item_id\": \"msg_002\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventInputAudioBufferCommitted",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.cleared",
    "description": "Returned when the input audio buffer is cleared by the client with a \n`input_audio_buffer.clear` event.\n",
    "canonical": "objects/RealtimeServerEventInputAudioBufferCleared",
    "definitions": [
      {
        "title": "RealtimeServerEventInputAudioBufferCleared",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.cleared`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.cleared"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.cleared",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventInputAudioBufferCleared",
          "canonical": "objects/RealtimeServerEventInputAudioBufferCleared",
          "label": "RealtimeServerEventInputAudioBufferCleared"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1314\",\n    \"type\": \"input_audio_buffer.cleared\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventInputAudioBufferCleared",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.speech_started",
    "description": "Sent by the server when in `server_vad` mode to indicate that speech has been \ndetected in the audio buffer. This can happen any time audio is added to the \nbuffer (unless speech is already detected). The client may want to use this \nevent to interrupt audio playback or provide visual feedback to the user. \n\nThe client should expect to receive a `input_audio_buffer.speech_stopped` event \nwhen speech stops. The `item_id` property is the ID of the user message item \nthat will be created when speech stops and will also be included in the \n`input_audio_buffer.speech_stopped` event (unless the client manually commits \nthe audio buffer during VAD activation).\n",
    "canonical": "objects/RealtimeServerEventInputAudioBufferSpeechStarted",
    "definitions": [
      {
        "title": "RealtimeServerEventInputAudioBufferSpeechStarted",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.speech_started`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.speech_started"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.speech_started",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "audio_start_ms",
            "type": "integer",
            "description": "Milliseconds from the start of all audio written to the buffer during the \nsession when speech was first detected. This will correspond to the \nbeginning of audio sent to the model, and thus includes the \n`prefix_padding_ms` configured in the Session.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the user message item that will be created when speech stops.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventInputAudioBufferSpeechStarted",
          "canonical": "objects/RealtimeServerEventInputAudioBufferSpeechStarted",
          "label": "RealtimeServerEventInputAudioBufferSpeechStarted"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1516\",\n    \"type\": \"input_audio_buffer.speech_started\",\n    \"audio_start_ms\": 1000,\n    \"item_id\": \"msg_003\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventInputAudioBufferSpeechStarted",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "input_audio_buffer.speech_stopped",
    "description": "Returned in `server_vad` mode when the server detects the end of speech in \nthe audio buffer. The server will also send an `conversation.item.created` \nevent with the user message item that is created from the audio buffer.\n",
    "canonical": "objects/RealtimeServerEventInputAudioBufferSpeechStopped",
    "definitions": [
      {
        "title": "RealtimeServerEventInputAudioBufferSpeechStopped",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `input_audio_buffer.speech_stopped`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "input_audio_buffer.speech_stopped"
              }
            ],
            "properties": [
              {
                "name": "input_audio_buffer.speech_stopped",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "audio_end_ms",
            "type": "integer",
            "description": "Milliseconds since the session started when speech stopped. This will \ncorrespond to the end of audio sent to the model, and thus includes the \n`min_silence_duration_ms` configured in the Session.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the user message item that will be created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventInputAudioBufferSpeechStopped",
          "canonical": "objects/RealtimeServerEventInputAudioBufferSpeechStopped",
          "label": "RealtimeServerEventInputAudioBufferSpeechStopped"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_1718\",\n    \"type\": \"input_audio_buffer.speech_stopped\",\n    \"audio_end_ms\": 2000,\n    \"item_id\": \"msg_003\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventInputAudioBufferSpeechStopped",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.created",
    "description": "Returned when a new Response is created. The first event of response creation,\nwhere the response is in an initial state of `in_progress`.\n",
    "canonical": "objects/RealtimeServerEventResponseCreated",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseCreated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.created`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.created"
              }
            ],
            "properties": [
              {
                "name": "response.created",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "The response resource.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeResponse",
              "canonical": "objects/RealtimeResponse",
              "label": "realtime.response"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the response.",
                "meta": []
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type, must be `realtime.response`.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.response"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The final status of the response (`completed`, `cancelled`, `failed`, or \n`incomplete`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "cancelled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status_details",
                "type": "object",
                "description": "Additional details about the status.",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of error that caused the response to fail, corresponding \nwith the `status` field (`completed`, `cancelled`, `incomplete`, \n`failed`).\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "cancelled",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason the Response did not complete. For a `cancelled` Response, \none of `turn_detected` (the server VAD detected a new start of speech) \nor `client_cancelled` (the client sent a cancel event). For an \n`incomplete` Response, one of `max_output_tokens` or `content_filter` \n(the server-side safety filter activated and cut off the response).\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "turn_detected",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "client_cancelled",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "error",
                    "type": "object",
                    "description": "A description of the error that caused the response to fail, \npopulated when the `status` is `failed`.\n",
                    "meta": [],
                    "properties": [
                      {
                        "name": "type",
                        "type": "string",
                        "description": "The type of error.",
                        "meta": []
                      },
                      {
                        "name": "code",
                        "type": "string",
                        "description": "Error code, if any.",
                        "meta": []
                      }
                    ]
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "The list of output items generated by the response.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                      "meta": []
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "message",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "function_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "function_call_output",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "object",
                      "type": "$$enum",
                      "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "realtime.item"
                        }
                      ],
                      "properties": [
                        {
                          "name": "realtime.item",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "system",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "input_audio",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "input_text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text content, used for `input_text` and `text` content types.\n",
                            "meta": []
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                            "meta": []
                          },
                          {
                            "name": "audio",
                            "type": "string",
                            "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                            "meta": []
                          },
                          {
                            "name": "transcript",
                            "type": "string",
                            "description": "The transcript of the audio, used for `input_audio` content type.\n",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function being called (for `function_call` items).\n",
                      "meta": []
                    },
                    {
                      "name": "arguments",
                      "type": "string",
                      "description": "The arguments of the function call (for `function_call` items).\n",
                      "meta": []
                    },
                    {
                      "name": "output",
                      "type": "string",
                      "description": "The output of the function call (for `function_call_output` items).\n",
                      "meta": []
                    }
                  ],
                  "description": "The item to add to the conversation.",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/RealtimeConversationItem",
                    "canonical": "objects/RealtimeConversationItem",
                    "label": "realtime.item"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/RealtimeConversationItem",
                  "canonical": "objects/RealtimeConversationItem",
                  "label": "realtime.item"
                }
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Usage statistics for the Response, this will correspond to billing. A \nRealtime API session will maintain a conversation context and append new \nItems to the Conversation, thus output from previous turns (text and \naudio tokens) will become the input for later turns.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens in the Response including input and output \ntext and audio tokens.\n",
                    "meta": []
                  },
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens used in the Response, including text and \naudio tokens.\n",
                    "meta": []
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens sent in the Response, including text and \naudio tokens.\n",
                    "meta": []
                  },
                  {
                    "name": "input_token_details",
                    "type": "object",
                    "description": "Details about the input tokens used in the Response.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of cached tokens used in the Response.",
                        "meta": []
                      },
                      {
                        "name": "text_tokens",
                        "type": "integer",
                        "description": "The number of text tokens used in the Response.",
                        "meta": []
                      },
                      {
                        "name": "audio_tokens",
                        "type": "integer",
                        "description": "The number of audio tokens used in the Response.",
                        "meta": []
                      }
                    ]
                  },
                  {
                    "name": "output_token_details",
                    "type": "object",
                    "description": "Details about the output tokens used in the Response.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "text_tokens",
                        "type": "integer",
                        "description": "The number of text tokens used in the Response.",
                        "meta": []
                      },
                      {
                        "name": "audio_tokens",
                        "type": "integer",
                        "description": "The number of audio tokens used in the Response.",
                        "meta": []
                      }
                    ]
                  }
                ]
              },
              {
                "name": "conversation_id",
                "type": "string",
                "description": "Which conversation the response is added to, determined by the `conversation`\nfield in the `response.create` event. If `auto`, the response will be added to\nthe default conversation and the value of `conversation_id` will be an id like\n`conv_1234`. If `none`, the response will not be added to any conversation and\nthe value of `conversation_id` will be `null`. If responses are being triggered\nby server VAD, the response will be added to the default conversation, thus\nthe `conversation_id` will be an id like `conv_1234`.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model used to respond.\nCurrent voice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "modalities",
                "type": "$$array",
                "description": "The set of modalities the model used to respond. If there are multiple modalities,\nthe model will pick one, for example if `modalities` is `[\"text\", \"audio\"]`, the model\ncould be responding in either text or audio.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "text",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                }
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n",
                "meta": []
              },
              {
                "name": "max_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls, that was used in this response.\n",
                "properties": [
                  {
                    "name": "max_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseCreated",
          "canonical": "objects/RealtimeServerEventResponseCreated",
          "label": "RealtimeServerEventResponseCreated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_2930\",\n    \"type\": \"response.created\",\n    \"response\": {\n        \"id\": \"resp_001\",\n        \"object\": \"realtime.response\",\n        \"status\": \"in_progress\",\n        \"status_details\": null,\n        \"output\": [],\n        \"usage\": null\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseCreated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.done",
    "description": "Returned when a Response is done streaming. Always emitted, no matter the \nfinal state. The Response object included in the `response.done` event will \ninclude all output Items in the Response but will omit the raw audio data.\n",
    "canonical": "objects/RealtimeServerEventResponseDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.done`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.done"
              }
            ],
            "properties": [
              {
                "name": "response.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response",
            "type": "object",
            "description": "The response resource.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeResponse",
              "canonical": "objects/RealtimeResponse",
              "label": "realtime.response"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the response.",
                "meta": []
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type, must be `realtime.response`.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.response"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.response",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The final status of the response (`completed`, `cancelled`, `failed`, or \n`incomplete`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "cancelled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status_details",
                "type": "object",
                "description": "Additional details about the status.",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of error that caused the response to fail, corresponding \nwith the `status` field (`completed`, `cancelled`, `incomplete`, \n`failed`).\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "completed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "cancelled",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "failed",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "incomplete",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "reason",
                    "type": "$$enum",
                    "description": "The reason the Response did not complete. For a `cancelled` Response, \none of `turn_detected` (the server VAD detected a new start of speech) \nor `client_cancelled` (the client sent a cancel event). For an \n`incomplete` Response, one of `max_output_tokens` or `content_filter` \n(the server-side safety filter activated and cut off the response).\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "turn_detected",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "client_cancelled",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "max_output_tokens",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "content_filter",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "error",
                    "type": "object",
                    "description": "A description of the error that caused the response to fail, \npopulated when the `status` is `failed`.\n",
                    "meta": [],
                    "properties": [
                      {
                        "name": "type",
                        "type": "string",
                        "description": "The type of error.",
                        "meta": []
                      },
                      {
                        "name": "code",
                        "type": "string",
                        "description": "Error code, if any.",
                        "meta": []
                      }
                    ]
                  }
                ]
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "The list of output items generated by the response.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                      "meta": []
                    },
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "message",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "function_call",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "function_call_output",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "object",
                      "type": "$$enum",
                      "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "realtime.item"
                        }
                      ],
                      "properties": [
                        {
                          "name": "realtime.item",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "status",
                      "type": "$$enum",
                      "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "completed",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "incomplete",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "system",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$array",
                      "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "input_audio",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "input_text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "text",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "text",
                            "type": "string",
                            "description": "The text content, used for `input_text` and `text` content types.\n",
                            "meta": []
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                            "meta": []
                          },
                          {
                            "name": "audio",
                            "type": "string",
                            "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                            "meta": []
                          },
                          {
                            "name": "transcript",
                            "type": "string",
                            "description": "The transcript of the audio, used for `input_audio` content type.\n",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "call_id",
                      "type": "string",
                      "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function being called (for `function_call` items).\n",
                      "meta": []
                    },
                    {
                      "name": "arguments",
                      "type": "string",
                      "description": "The arguments of the function call (for `function_call` items).\n",
                      "meta": []
                    },
                    {
                      "name": "output",
                      "type": "string",
                      "description": "The output of the function call (for `function_call_output` items).\n",
                      "meta": []
                    }
                  ],
                  "description": "The item to add to the conversation.",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/RealtimeConversationItem",
                    "canonical": "objects/RealtimeConversationItem",
                    "label": "realtime.item"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/RealtimeConversationItem",
                  "canonical": "objects/RealtimeConversationItem",
                  "label": "realtime.item"
                }
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Usage statistics for the Response, this will correspond to billing. A \nRealtime API session will maintain a conversation context and append new \nItems to the Conversation, thus output from previous turns (text and \naudio tokens) will become the input for later turns.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens in the Response including input and output \ntext and audio tokens.\n",
                    "meta": []
                  },
                  {
                    "name": "input_tokens",
                    "type": "integer",
                    "description": "The number of input tokens used in the Response, including text and \naudio tokens.\n",
                    "meta": []
                  },
                  {
                    "name": "output_tokens",
                    "type": "integer",
                    "description": "The number of output tokens sent in the Response, including text and \naudio tokens.\n",
                    "meta": []
                  },
                  {
                    "name": "input_token_details",
                    "type": "object",
                    "description": "Details about the input tokens used in the Response.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "cached_tokens",
                        "type": "integer",
                        "description": "The number of cached tokens used in the Response.",
                        "meta": []
                      },
                      {
                        "name": "text_tokens",
                        "type": "integer",
                        "description": "The number of text tokens used in the Response.",
                        "meta": []
                      },
                      {
                        "name": "audio_tokens",
                        "type": "integer",
                        "description": "The number of audio tokens used in the Response.",
                        "meta": []
                      }
                    ]
                  },
                  {
                    "name": "output_token_details",
                    "type": "object",
                    "description": "Details about the output tokens used in the Response.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "text_tokens",
                        "type": "integer",
                        "description": "The number of text tokens used in the Response.",
                        "meta": []
                      },
                      {
                        "name": "audio_tokens",
                        "type": "integer",
                        "description": "The number of audio tokens used in the Response.",
                        "meta": []
                      }
                    ]
                  }
                ]
              },
              {
                "name": "conversation_id",
                "type": "string",
                "description": "Which conversation the response is added to, determined by the `conversation`\nfield in the `response.create` event. If `auto`, the response will be added to\nthe default conversation and the value of `conversation_id` will be an id like\n`conv_1234`. If `none`, the response will not be added to any conversation and\nthe value of `conversation_id` will be `null`. If responses are being triggered\nby server VAD, the response will be added to the default conversation, thus\nthe `conversation_id` will be an id like `conv_1234`.\n",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice the model used to respond.\nCurrent voice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.\n",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "modalities",
                "type": "$$array",
                "description": "The set of modalities the model used to respond. If there are multiple modalities,\nthe model will pick one, for example if `modalities` is `[\"text\", \"audio\"]`, the model\ncould be responding in either text or audio.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "text",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                }
              },
              {
                "name": "output_audio_format",
                "type": "$$enum",
                "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "pcm16",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_ulaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "g711_alaw",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n",
                "meta": []
              },
              {
                "name": "max_output_tokens",
                "type": "$$xor",
                "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls, that was used in this response.\n",
                "properties": [
                  {
                    "name": "max_output_tokens",
                    "type": "integer",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_output_tokens",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "inf"
                      }
                    ],
                    "properties": [
                      {
                        "name": "inf",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ],
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseDone",
          "canonical": "objects/RealtimeServerEventResponseDone",
          "label": "RealtimeServerEventResponseDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_3132\",\n    \"type\": \"response.done\",\n    \"response\": {\n        \"id\": \"resp_001\",\n        \"object\": \"realtime.response\",\n        \"status\": \"completed\",\n        \"status_details\": null,\n        \"output\": [\n            {\n                \"id\": \"msg_006\",\n                \"object\": \"realtime.item\",\n                \"type\": \"message\",\n                \"status\": \"completed\",\n                \"role\": \"assistant\",\n                \"content\": [\n                    {\n                        \"type\": \"text\",\n                        \"text\": \"Sure, how can I assist you today?\"\n                    }\n                ]\n            }\n        ],\n        \"usage\": {\n            \"total_tokens\":275,\n            \"input_tokens\":127,\n            \"output_tokens\":148,\n            \"input_token_details\": {\n                \"cached_tokens\":384,\n                \"text_tokens\":119,\n                \"audio_tokens\":8,\n                \"cached_tokens_details\": {\n                    \"text_tokens\": 128,\n                    \"audio_tokens\": 256\n                }\n            },\n            \"output_token_details\": {\n              \"text_tokens\":36,\n              \"audio_tokens\":112\n            }\n        }\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.output_item.added",
    "description": "Returned when a new Item is created during Response generation.",
    "canonical": "objects/RealtimeServerEventResponseOutputItemAdded",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseOutputItemAdded",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.output_item.added`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_item.added"
              }
            ],
            "properties": [
              {
                "name": "response.output_item.added",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the Response to which the item belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the Response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item",
            "type": "object",
            "description": "The item to add to the conversation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeConversationItem",
              "canonical": "objects/RealtimeConversationItem",
              "label": "realtime.item"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                "meta": []
              },
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "message",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.item"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.item",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "system",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$array",
                "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "input_audio",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "input_text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "item_reference",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "text",
                      "type": "string",
                      "description": "The text content, used for `input_text` and `text` content types.\n",
                      "meta": []
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                      "meta": []
                    },
                    {
                      "name": "transcript",
                      "type": "string",
                      "description": "The transcript of the audio, used for `input_audio` content type.\n",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "call_id",
                "type": "string",
                "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the function being called (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "arguments",
                "type": "string",
                "description": "The arguments of the function call (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "output",
                "type": "string",
                "description": "The output of the function call (for `function_call_output` items).\n",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseOutputItemAdded",
          "canonical": "objects/RealtimeServerEventResponseOutputItemAdded",
          "label": "RealtimeServerEventResponseOutputItemAdded"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_3334\",\n    \"type\": \"response.output_item.added\",\n    \"response_id\": \"resp_001\",\n    \"output_index\": 0,\n    \"item\": {\n        \"id\": \"msg_007\",\n        \"object\": \"realtime.item\",\n        \"type\": \"message\",\n        \"status\": \"in_progress\",\n        \"role\": \"assistant\",\n        \"content\": []\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseOutputItemAdded",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.output_item.done",
    "description": "Returned when an Item is done streaming. Also emitted when a Response is \ninterrupted, incomplete, or cancelled.\n",
    "canonical": "objects/RealtimeServerEventResponseOutputItemDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseOutputItemDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.output_item.done`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.output_item.done"
              }
            ],
            "properties": [
              {
                "name": "response.output_item.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the Response to which the item belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the Response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item",
            "type": "object",
            "description": "The item to add to the conversation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeConversationItem",
              "canonical": "objects/RealtimeConversationItem",
              "label": "realtime.item"
            },
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The unique ID of the item, this can be generated by the client to help \nmanage server-side context, but is not required because the server will \ngenerate one if not provided.\n",
                "meta": []
              },
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of the item (`message`, `function_call`, `function_call_output`).\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "message",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "function_call_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "Identifier for the API object being returned - always `realtime.item`.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "realtime.item"
                  }
                ],
                "properties": [
                  {
                    "name": "realtime.item",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "The status of the item (`completed`, `incomplete`). These have no effect \non the conversation, but are accepted for consistency with the \n`conversation.item.created` event.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "completed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "incomplete",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "The role of the message sender (`user`, `assistant`, `system`), only \napplicable for `message` items.\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "system",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$array",
                "description": "The content of the message, applicable for `message` items. \n- Message items of role `system` support only `input_text` content\n- Message items of role `user` support `input_text` and `input_audio` \n  content\n- Message items of role `assistant` support `text` content.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The content type (`input_text`, `input_audio`, `item_reference`, `text`).\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "input_audio",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "input_text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "item_reference",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "text",
                      "type": "string",
                      "description": "The text content, used for `input_text` and `text` content types.\n",
                      "meta": []
                    },
                    {
                      "name": "id",
                      "type": "string",
                      "description": "ID of a previous conversation item to reference (for `item_reference`\ncontent types in `response.create` events). These can reference both\nclient and server created items.\n",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "string",
                      "description": "Base64-encoded audio bytes, used for `input_audio` content type.\n",
                      "meta": []
                    },
                    {
                      "name": "transcript",
                      "type": "string",
                      "description": "The transcript of the audio, used for `input_audio` content type.\n",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "call_id",
                "type": "string",
                "description": "The ID of the function call (for `function_call` and \n`function_call_output` items). If passed on a `function_call_output` \nitem, the server will check that a `function_call` item with the same \nID exists in the conversation history.\n",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the function being called (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "arguments",
                "type": "string",
                "description": "The arguments of the function call (for `function_call` items).\n",
                "meta": []
              },
              {
                "name": "output",
                "type": "string",
                "description": "The output of the function call (for `function_call_output` items).\n",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseOutputItemDone",
          "canonical": "objects/RealtimeServerEventResponseOutputItemDone",
          "label": "RealtimeServerEventResponseOutputItemDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_3536\",\n    \"type\": \"response.output_item.done\",\n    \"response_id\": \"resp_001\",\n    \"output_index\": 0,\n    \"item\": {\n        \"id\": \"msg_007\",\n        \"object\": \"realtime.item\",\n        \"type\": \"message\",\n        \"status\": \"completed\",\n        \"role\": \"assistant\",\n        \"content\": [\n            {\n                \"type\": \"text\",\n                \"text\": \"Sure, I can help with that.\"\n            }\n        ]\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseOutputItemDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.content_part.added",
    "description": "Returned when a new content part is added to an assistant message item during\nresponse generation.\n",
    "canonical": "objects/RealtimeServerEventResponseContentPartAdded",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseContentPartAdded",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.content_part.added`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.content_part.added"
              }
            ],
            "properties": [
              {
                "name": "response.content_part.added",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item to which the content part was added.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "part",
            "type": "object",
            "description": "The content part that was added.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The content type (\"text\", \"audio\").",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "audio",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "text",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "text",
                "type": "string",
                "description": "The text content (if type is \"text\").",
                "meta": []
              },
              {
                "name": "audio",
                "type": "string",
                "description": "Base64-encoded audio data (if type is \"audio\").",
                "meta": []
              },
              {
                "name": "transcript",
                "type": "string",
                "description": "The transcript of the audio (if type is \"audio\").",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseContentPartAdded",
          "canonical": "objects/RealtimeServerEventResponseContentPartAdded",
          "label": "RealtimeServerEventResponseContentPartAdded"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_3738\",\n    \"type\": \"response.content_part.added\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_007\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"part\": {\n        \"type\": \"text\",\n        \"text\": \"\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseContentPartAdded",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.content_part.done",
    "description": "Returned when a content part is done streaming in an assistant message item.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.\n",
    "canonical": "objects/RealtimeServerEventResponseContentPartDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseContentPartDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.content_part.done`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.content_part.done"
              }
            ],
            "properties": [
              {
                "name": "response.content_part.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "part",
            "type": "object",
            "description": "The content part that is done.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The content type (\"text\", \"audio\").",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "audio",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "text",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "text",
                "type": "string",
                "description": "The text content (if type is \"text\").",
                "meta": []
              },
              {
                "name": "audio",
                "type": "string",
                "description": "Base64-encoded audio data (if type is \"audio\").",
                "meta": []
              },
              {
                "name": "transcript",
                "type": "string",
                "description": "The transcript of the audio (if type is \"audio\").",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseContentPartDone",
          "canonical": "objects/RealtimeServerEventResponseContentPartDone",
          "label": "RealtimeServerEventResponseContentPartDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_3940\",\n    \"type\": \"response.content_part.done\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_007\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"part\": {\n        \"type\": \"text\",\n        \"text\": \"Sure, I can help with that.\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseContentPartDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.text.delta",
    "description": "Returned when the text value of a \"text\" content part is updated.",
    "canonical": "objects/RealtimeServerEventResponseTextDelta",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseTextDelta",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.text.delta`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.text.delta"
              }
            ],
            "properties": [
              {
                "name": "response.text.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The text delta.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseTextDelta",
          "canonical": "objects/RealtimeServerEventResponseTextDelta",
          "label": "RealtimeServerEventResponseTextDelta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_4142\",\n    \"type\": \"response.text.delta\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_007\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"delta\": \"Sure, I can h\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseTextDelta",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.text.done",
    "description": "Returned when the text value of a \"text\" content part is done streaming. Also\nemitted when a Response is interrupted, incomplete, or cancelled.\n",
    "canonical": "objects/RealtimeServerEventResponseTextDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseTextDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.text.done`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.text.done"
              }
            ],
            "properties": [
              {
                "name": "response.text.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "text",
            "type": "string",
            "description": "The final text content.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseTextDone",
          "canonical": "objects/RealtimeServerEventResponseTextDone",
          "label": "RealtimeServerEventResponseTextDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_4344\",\n    \"type\": \"response.text.done\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_007\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"text\": \"Sure, I can help with that.\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseTextDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.audio_transcript.delta",
    "description": "Returned when the model-generated transcription of audio output is updated.\n",
    "canonical": "objects/RealtimeServerEventResponseAudioTranscriptDelta",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseAudioTranscriptDelta",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.audio_transcript.delta`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.audio_transcript.delta"
              }
            ],
            "properties": [
              {
                "name": "response.audio_transcript.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The transcript delta.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseAudioTranscriptDelta",
          "canonical": "objects/RealtimeServerEventResponseAudioTranscriptDelta",
          "label": "RealtimeServerEventResponseAudioTranscriptDelta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_4546\",\n    \"type\": \"response.audio_transcript.delta\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_008\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"delta\": \"Hello, how can I a\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseAudioTranscriptDelta",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.audio_transcript.done",
    "description": "Returned when the model-generated transcription of audio output is done\nstreaming. Also emitted when a Response is interrupted, incomplete, or\ncancelled.\n",
    "canonical": "objects/RealtimeServerEventResponseAudioTranscriptDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseAudioTranscriptDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.audio_transcript.done`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.audio_transcript.done"
              }
            ],
            "properties": [
              {
                "name": "response.audio_transcript.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "transcript",
            "type": "string",
            "description": "The final transcript of the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseAudioTranscriptDone",
          "canonical": "objects/RealtimeServerEventResponseAudioTranscriptDone",
          "label": "RealtimeServerEventResponseAudioTranscriptDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_4748\",\n    \"type\": \"response.audio_transcript.done\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_008\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"transcript\": \"Hello, how can I assist you today?\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseAudioTranscriptDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.audio.delta",
    "description": "Returned when the model-generated audio is updated.",
    "canonical": "objects/RealtimeServerEventResponseAudioDelta",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseAudioDelta",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.audio.delta`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.audio.delta"
              }
            ],
            "properties": [
              {
                "name": "response.audio.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "Base64-encoded audio data delta.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseAudioDelta",
          "canonical": "objects/RealtimeServerEventResponseAudioDelta",
          "label": "RealtimeServerEventResponseAudioDelta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_4950\",\n    \"type\": \"response.audio.delta\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_008\",\n    \"output_index\": 0,\n    \"content_index\": 0,\n    \"delta\": \"Base64EncodedAudioDelta\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseAudioDelta",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.audio.done",
    "description": "Returned when the model-generated audio is done. Also emitted when a Response\nis interrupted, incomplete, or cancelled.\n",
    "canonical": "objects/RealtimeServerEventResponseAudioDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseAudioDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.audio.done`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.audio.done"
              }
            ],
            "properties": [
              {
                "name": "response.audio.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "content_index",
            "type": "integer",
            "description": "The index of the content part in the item's content array.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseAudioDone",
          "canonical": "objects/RealtimeServerEventResponseAudioDone",
          "label": "RealtimeServerEventResponseAudioDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_5152\",\n    \"type\": \"response.audio.done\",\n    \"response_id\": \"resp_001\",\n    \"item_id\": \"msg_008\",\n    \"output_index\": 0,\n    \"content_index\": 0\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseAudioDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.function_call_arguments.delta",
    "description": "Returned when the model-generated function call arguments are updated.\n",
    "canonical": "objects/RealtimeServerEventResponseFunctionCallArgumentsDelta",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseFunctionCallArgumentsDelta",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.function_call_arguments.delta`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.function_call_arguments.delta"
              }
            ],
            "properties": [
              {
                "name": "response.function_call_arguments.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the function call item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "call_id",
            "type": "string",
            "description": "The ID of the function call.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The arguments delta as a JSON string.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseFunctionCallArgumentsDelta",
          "canonical": "objects/RealtimeServerEventResponseFunctionCallArgumentsDelta",
          "label": "RealtimeServerEventResponseFunctionCallArgumentsDelta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_5354\",\n    \"type\": \"response.function_call_arguments.delta\",\n    \"response_id\": \"resp_002\",\n    \"item_id\": \"fc_001\",\n    \"output_index\": 0,\n    \"call_id\": \"call_001\",\n    \"delta\": \"{\\\"location\\\": \\\"San\\\"\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseFunctionCallArgumentsDelta",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "response.function_call_arguments.done",
    "description": "Returned when the model-generated function call arguments are done streaming.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.\n",
    "canonical": "objects/RealtimeServerEventResponseFunctionCallArgumentsDone",
    "definitions": [
      {
        "title": "RealtimeServerEventResponseFunctionCallArgumentsDone",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `response.function_call_arguments.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "response.function_call_arguments.done"
              }
            ],
            "properties": [
              {
                "name": "response.function_call_arguments.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The ID of the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "item_id",
            "type": "string",
            "description": "The ID of the function call item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_index",
            "type": "integer",
            "description": "The index of the output item in the response.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "call_id",
            "type": "string",
            "description": "The ID of the function call.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "arguments",
            "type": "string",
            "description": "The final arguments as a JSON string.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventResponseFunctionCallArgumentsDone",
          "canonical": "objects/RealtimeServerEventResponseFunctionCallArgumentsDone",
          "label": "RealtimeServerEventResponseFunctionCallArgumentsDone"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_5556\",\n    \"type\": \"response.function_call_arguments.done\",\n    \"response_id\": \"resp_002\",\n    \"item_id\": \"fc_001\",\n    \"output_index\": 0,\n    \"call_id\": \"call_001\",\n    \"arguments\": \"{\\\"location\\\": \\\"San Francisco\\\"}\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventResponseFunctionCallArgumentsDone",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "transcription_session.updated",
    "description": "Returned when a transcription session is updated with a `transcription_session.update` event, unless \nthere is an error.\n",
    "canonical": "objects/RealtimeServerEventTranscriptionSessionUpdated",
    "definitions": [
      {
        "title": "RealtimeServerEventTranscriptionSessionUpdated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `transcription_session.updated`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "transcription_session.updated"
              }
            ],
            "properties": [
              {
                "name": "transcription_session.updated",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "session",
            "type": "object",
            "description": "A new Realtime transcription session configuration.\n\nWhen a session is created on the server via REST API, the session object\nalso contains an ephemeral key. Default TTL for keys is one minute. This \nproperty is not present when a session is updated via the WebSocket API.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RealtimeTranscriptionSessionCreateResponse",
              "canonical": "objects/RealtimeTranscriptionSessionCreateResponse",
              "label": "RealtimeTranscriptionSessionCreateResponse"
            },
            "properties": [
              {
                "name": "client_secret",
                "type": "object",
                "description": "Ephemeral key returned by the API. Only present when the session is\ncreated on the server via REST API.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "value",
                    "type": "string",
                    "description": "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "expires_at",
                    "type": "integer",
                    "description": "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "modalities",
                "type": "object",
                "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n",
                "meta": []
              },
              {
                "name": "input_audio_format",
                "type": "string",
                "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n",
                "meta": []
              },
              {
                "name": "input_audio_transcription",
                "type": "object",
                "description": "Configuration of the transcription model.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`.\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4o-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "whisper-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "language",
                    "type": "string",
                    "description": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.\n",
                    "meta": []
                  },
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "An optional text to guide the model's style or continue a previous audio\nsegment. The [prompt](/docs/guides/speech-to-text#prompting) should match\nthe audio language.\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "turn_detection",
                "type": "object",
                "description": "Configuration for turn detection. Can be set to `null` to turn off. Server \nVAD means that the model will detect the start and end of speech based on \naudio volume and respond at the end of user speech.\n",
                "meta": [],
                "properties": [
                  {
                    "name": "type",
                    "type": "string",
                    "description": "Type of turn detection, only `server_vad` is currently supported.\n",
                    "meta": []
                  },
                  {
                    "name": "threshold",
                    "type": "number",
                    "description": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n",
                    "meta": []
                  },
                  {
                    "name": "prefix_padding_ms",
                    "type": "integer",
                    "description": "Amount of audio to include before the VAD detected speech (in \nmilliseconds). Defaults to 300ms.\n",
                    "meta": []
                  },
                  {
                    "name": "silence_duration_ms",
                    "type": "integer",
                    "description": "Duration of silence to detect speech stop (in milliseconds). Defaults \nto 500ms. With shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n",
                    "meta": []
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventTranscriptionSessionUpdated",
          "canonical": "objects/RealtimeServerEventTranscriptionSessionUpdated",
          "label": "RealtimeServerEventTranscriptionSessionUpdated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"event_id\": \"event_5678\",\n  \"type\": \"transcription_session.updated\",\n  \"session\": {\n    \"id\": \"sess_001\",\n    \"object\": \"realtime.transcription_session\",\n    \"input_audio_format\": \"pcm16\",\n    \"input_audio_transcription\": {\n      \"model\": \"gpt-4o-transcribe\",\n      \"prompt\": \"\",\n      \"language\": \"\"\n    },\n    \"turn_detection\": {\n      \"type\": \"server_vad\",\n      \"threshold\": 0.5,\n      \"prefix_padding_ms\": 300,\n      \"silence_duration_ms\": 500,\n      \"create_response\": true,\n      // \"interrupt_response\": false  -- this will NOT be returned\n    },\n    \"input_audio_noise_reduction\": {\n      \"type\": \"near_field\"\n    },\n    \"include\": [\n      \"item.input_audio_transcription.avg_logprob\",\n    ],\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventTranscriptionSessionUpdated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "rate_limits.updated",
    "description": "Emitted at the beginning of a Response to indicate the updated rate limits. \nWhen a Response is created some tokens will be \"reserved\" for the output \ntokens, the rate limits shown here reflect that reservation, which is then \nadjusted accordingly once the Response is completed.\n",
    "canonical": "objects/RealtimeServerEventRateLimitsUpdated",
    "definitions": [
      {
        "title": "RealtimeServerEventRateLimitsUpdated",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `rate_limits.updated`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "rate_limits.updated"
              }
            ],
            "properties": [
              {
                "name": "rate_limits.updated",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "rate_limits",
            "type": "$$array",
            "description": "List of rate limit information.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "name",
                  "type": "$$enum",
                  "description": "The name of the rate limit (`requests`, `tokens`).\n",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "requests",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "tokens",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "limit",
                  "type": "integer",
                  "description": "The maximum allowed value for the rate limit.",
                  "meta": []
                },
                {
                  "name": "remaining",
                  "type": "integer",
                  "description": "The remaining value before the limit is reached.",
                  "meta": []
                },
                {
                  "name": "reset_seconds",
                  "type": "number",
                  "description": "Seconds until the rate limit resets.",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventRateLimitsUpdated",
          "canonical": "objects/RealtimeServerEventRateLimitsUpdated",
          "label": "RealtimeServerEventRateLimitsUpdated"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_5758\",\n    \"type\": \"rate_limits.updated\",\n    \"rate_limits\": [\n        {\n            \"name\": \"requests\",\n            \"limit\": 1000,\n            \"remaining\": 999,\n            \"reset_seconds\": 60\n        },\n        {\n            \"name\": \"tokens\",\n            \"limit\": 50000,\n            \"remaining\": 49950,\n            \"reset_seconds\": 60\n        }\n    ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventRateLimitsUpdated",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "output_audio_buffer.started",
    "description": "**WebRTC Only:** Emitted when the server begins streaming audio to the client. This event is\nemitted after an audio content part has been added (`response.content_part.added`)\nto the response.\n[Learn more](/docs/guides/realtime-model-capabilities#client-and-server-events-for-audio-in-webrtc).\n",
    "canonical": "objects/RealtimeServerEventOutputAudioBufferStarted",
    "definitions": [
      {
        "title": "RealtimeServerEventOutputAudioBufferStarted",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `output_audio_buffer.started`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "output_audio_buffer.started"
              }
            ],
            "properties": [
              {
                "name": "output_audio_buffer.started",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The unique ID of the response that produced the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventOutputAudioBufferStarted",
          "canonical": "objects/RealtimeServerEventOutputAudioBufferStarted",
          "label": "RealtimeServerEventOutputAudioBufferStarted"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_abc123\",\n    \"type\": \"output_audio_buffer.started\",\n    \"response_id\": \"resp_abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventOutputAudioBufferStarted",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "output_audio_buffer.stopped",
    "description": "**WebRTC Only:** Emitted when the output audio buffer has been completely drained on the server,\nand no more audio is forthcoming. This event is emitted after the full response\ndata has been sent to the client (`response.done`).\n[Learn more](/docs/guides/realtime-model-capabilities#client-and-server-events-for-audio-in-webrtc).\n",
    "canonical": "objects/RealtimeServerEventOutputAudioBufferStopped",
    "definitions": [
      {
        "title": "RealtimeServerEventOutputAudioBufferStopped",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `output_audio_buffer.stopped`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "output_audio_buffer.stopped"
              }
            ],
            "properties": [
              {
                "name": "output_audio_buffer.stopped",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The unique ID of the response that produced the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventOutputAudioBufferStopped",
          "canonical": "objects/RealtimeServerEventOutputAudioBufferStopped",
          "label": "RealtimeServerEventOutputAudioBufferStopped"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_abc123\",\n    \"type\": \"output_audio_buffer.stopped\",\n    \"response_id\": \"resp_abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventOutputAudioBufferStopped",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "output_audio_buffer.cleared",
    "description": "**WebRTC Only:** Emitted when the output audio buffer is cleared. This happens either in VAD\nmode when the user has interrupted (`input_audio_buffer.speech_started`),\nor when the client has emitted the `output_audio_buffer.clear` event to manually\ncut off the current audio response.\n[Learn more](/docs/guides/realtime-model-capabilities#client-and-server-events-for-audio-in-webrtc).\n",
    "canonical": "objects/RealtimeServerEventOutputAudioBufferCleared",
    "definitions": [
      {
        "title": "RealtimeServerEventOutputAudioBufferCleared",
        "properties": [
          {
            "name": "event_id",
            "type": "string",
            "description": "The unique ID of the server event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type, must be `output_audio_buffer.cleared`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "output_audio_buffer.cleared"
              }
            ],
            "properties": [
              {
                "name": "output_audio_buffer.cleared",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "response_id",
            "type": "string",
            "description": "The unique ID of the response that produced the audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RealtimeServerEventOutputAudioBufferCleared",
          "canonical": "objects/RealtimeServerEventOutputAudioBufferCleared",
          "label": "RealtimeServerEventOutputAudioBufferCleared"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"event_id\": \"event_abc123\",\n    \"type\": \"output_audio_buffer.cleared\",\n    \"response_id\": \"resp_abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RealtimeServerEventOutputAudioBufferCleared",
      "group": [
        "Realtime",
        "Server events"
      ]
    }
  },
  {
    "title": "Create speech",
    "canonical": "audio/createSpeech",
    "description": "Generates audio from the input text.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/audio/speech",
      "group": [
        "Platform APIs",
        "Audio"
      ],
      "fullPath": "https://api.openai.com/v1/audio/speech",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/speech \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"gpt-4o-mini-tts\",\n    \"input\": \"The quick brown fox jumped over the lazy dog.\",\n    \"voice\": \"alloy\"\n  }' \\\n  --output speech.mp3\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from pathlib import Path\nimport openai\n\nspeech_file_path = Path(__file__).parent / \"speech.mp3\"\nwith openai.audio.speech.with_streaming_response.create(\n  model=\"gpt-4o-mini-tts\",\n  voice=\"alloy\",\n  input=\"The quick brown fox jumped over the lazy dog.\"\n) as response:\n  response.stream_to_file(speech_file_path)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport path from \"path\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst speechFile = path.resolve(\"./speech.mp3\");\n\nasync function main() {\n  const mp3 = await openai.audio.speech.create({\n    model: \"gpt-4o-mini-tts\",\n    voice: \"alloy\",\n    input: \"Today is a wonderful day to build something people love!\",\n  });\n  console.log(speechFile);\n  const buffer = Buffer.from(await mp3.arrayBuffer());\n  await fs.promises.writeFile(speechFile, buffer);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.IO;\n\nusing OpenAI.Audio;\n\nAudioClient client = new(\n    model: \"gpt-4o-mini-tts\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nBinaryData speech = client.GenerateSpeech(\n    text: \"The quick brown fox jumped over the lazy dog.\",\n    voice: GeneratedSpeechVoice.Alloy\n);\n\nusing FileStream stream = File.OpenWrite(\"speech.mp3\");\nspeech.ToStream().CopyTo(stream);\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "model",
                "type": "$$union",
                "description": "One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "tts-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "tts-1-hd",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-tts",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "input",
                "type": "string",
                "description": "The text to generate audio for. The maximum length is 4096 characters.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Control the voice of your generated audio with additional instructions. Does not work with `tts-1` or `tts-1-hd`.",
                "meta": []
              },
              {
                "name": "voice",
                "type": "$$union",
                "description": "The voice to use when generating the audio. Supported voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and `verse`. Previews of the voices are available in the [Text to speech guide](/docs/guides/text-to-speech#voice-options).",
                "properties": [
                  {
                    "name": "voice",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "voice",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "alloy",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ash",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "ballad",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "coral",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "echo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "fable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "onyx",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "nova",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "sage",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "shimmer",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "verse",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "mp3"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "mp3",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "opus",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "aac",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "flac",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "wav",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "pcm",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "speed",
                "type": "number",
                "description": "The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 4
                  },
                  {
                    "name": "minimum",
                    "value": 0.25
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateSpeechRequest",
              "canonical": "objects/CreateSpeechRequest",
              "label": "CreateSpeechRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The audio file content.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create transcription",
    "canonical": "audio/createTranscription",
    "description": "Transcribes audio into the input language.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/audio/transcriptions",
      "group": [
        "Platform APIs",
        "Audio"
      ],
      "fullPath": "https://api.openai.com/v1/audio/transcriptions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/transcriptions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F file=\"@/path/to/file/audio.mp3\" \\\n  -F model=\"gpt-4o-transcribe\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\naudio_file = open(\"speech.mp3\", \"rb\")\ntranscript = client.audio.transcriptions.create(\n  model=\"gpt-4o-transcribe\",\n  file=audio_file\n)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const transcription = await openai.audio.transcriptions.create({\n    file: fs.createReadStream(\"audio.mp3\"),\n    model: \"gpt-4o-transcribe\",\n  });\n\n  console.log(transcription.text);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Audio;\nstring audioFilePath = \"audio.mp3\";\n\nAudioClient client = new(\n    model: \"gpt-4o-transcribe\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nAudioTranscription transcription = client.TranscribeAudio(audioFilePath);\n\nConsole.WriteLine($\"{transcription.Text}\");\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/transcriptions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F file=\"@/path/to/file/audio.mp3\" \\\n  -F model=\"gpt-4o-mini-transcribe\" \\\n  -F stream=true\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\naudio_file = open(\"speech.mp3\", \"rb\")\nstream = client.audio.transcriptions.create(\n  file=audio_file,\n  model=\"gpt-4o-mini-transcribe\",\n  stream=True\n)\n\nfor event in stream:\n  print(event)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst stream = await openai.audio.transcriptions.create({\n  file: fs.createReadStream(\"audio.mp3\"),\n  model: \"gpt-4o-mini-transcribe\",\n  stream: true,\n});\n\nfor await (const event of stream) {\n  console.log(event);\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Logprobs",
              "codeblock": {
                "title": "Logprobs",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/transcriptions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F file=\"@/path/to/file/audio.mp3\" \\\n  -F \"include[]=logprobs\" \\\n  -F model=\"gpt-4o-transcribe\" \\\n  -F response_format=\"json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\naudio_file = open(\"speech.mp3\", \"rb\")\ntranscript = client.audio.transcriptions.create(\n  file=audio_file,\n  model=\"gpt-4o-transcribe\",\n  response_format=\"json\",\n  include=[\"logprobs\"]\n)\n\nprint(transcript)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const transcription = await openai.audio.transcriptions.create({\n    file: fs.createReadStream(\"audio.mp3\"),\n    model: \"gpt-4o-transcribe\",\n    response_format: \"json\",\n    include: [\"logprobs\"]\n  });\n\n  console.log(transcription);\n}\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Word timestamps",
              "codeblock": {
                "title": "Word timestamps",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/transcriptions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F file=\"@/path/to/file/audio.mp3\" \\\n  -F \"timestamp_granularities[]=word\" \\\n  -F model=\"whisper-1\" \\\n  -F response_format=\"verbose_json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\naudio_file = open(\"speech.mp3\", \"rb\")\ntranscript = client.audio.transcriptions.create(\n  file=audio_file,\n  model=\"whisper-1\",\n  response_format=\"verbose_json\",\n  timestamp_granularities=[\"word\"]\n)\n\nprint(transcript.words)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const transcription = await openai.audio.transcriptions.create({\n    file: fs.createReadStream(\"audio.mp3\"),\n    model: \"whisper-1\",\n    response_format: \"verbose_json\",\n    timestamp_granularities: [\"word\"]\n  });\n\n  console.log(transcription.text);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Audio;\n\nstring audioFilePath = \"audio.mp3\";\n\nAudioClient client = new(\n    model: \"whisper-1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nAudioTranscriptionOptions options = new()\n{\n    ResponseFormat = AudioTranscriptionFormat.Verbose,\n    TimestampGranularities = AudioTimestampGranularities.Word,\n};\n\nAudioTranscription transcription = client.TranscribeAudio(audioFilePath, options);\n\nConsole.WriteLine($\"{transcription.Text}\");\n"
                  }
                ]
              }
            },
            {
              "description": "Segment timestamps",
              "codeblock": {
                "title": "Segment timestamps",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/transcriptions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F file=\"@/path/to/file/audio.mp3\" \\\n  -F \"timestamp_granularities[]=segment\" \\\n  -F model=\"whisper-1\" \\\n  -F response_format=\"verbose_json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\naudio_file = open(\"speech.mp3\", \"rb\")\ntranscript = client.audio.transcriptions.create(\n  file=audio_file,\n  model=\"whisper-1\",\n  response_format=\"verbose_json\",\n  timestamp_granularities=[\"segment\"]\n)\n\nprint(transcript.words)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const transcription = await openai.audio.transcriptions.create({\n    file: fs.createReadStream(\"audio.mp3\"),\n    model: \"whisper-1\",\n    response_format: \"verbose_json\",\n    timestamp_granularities: [\"segment\"]\n  });\n\n  console.log(transcription.text);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Audio;\n\nstring audioFilePath = \"audio.mp3\";\n\nAudioClient client = new(\n    model: \"whisper-1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nAudioTranscriptionOptions options = new()\n{\n    ResponseFormat = AudioTranscriptionFormat.Verbose,\n    TimestampGranularities = AudioTimestampGranularities.Segment,\n};\n\nAudioTranscription transcription = client.TranscribeAudio(audioFilePath, options);\n\nConsole.WriteLine($\"{transcription.Text}\");\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"text\": \"Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that.\"\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "data: {\"type\":\"transcript.text.delta\",\"delta\":\"I\",\"logprobs\":[{\"token\":\"I\",\"logprob\":-0.00007588794,\"bytes\":[73]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" see\",\"logprobs\":[{\"token\":\" see\",\"logprob\":-3.1281633e-7,\"bytes\":[32,115,101,101]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" skies\",\"logprobs\":[{\"token\":\" skies\",\"logprob\":-2.3392786e-6,\"bytes\":[32,115,107,105,101,115]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" of\",\"logprobs\":[{\"token\":\" of\",\"logprob\":-3.1281633e-7,\"bytes\":[32,111,102]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" blue\",\"logprobs\":[{\"token\":\" blue\",\"logprob\":-1.0280384e-6,\"bytes\":[32,98,108,117,101]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" and\",\"logprobs\":[{\"token\":\" and\",\"logprob\":-0.0005108566,\"bytes\":[32,97,110,100]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" clouds\",\"logprobs\":[{\"token\":\" clouds\",\"logprob\":-1.9361265e-7,\"bytes\":[32,99,108,111,117,100,115]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" of\",\"logprobs\":[{\"token\":\" of\",\"logprob\":-1.9361265e-7,\"bytes\":[32,111,102]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" white\",\"logprobs\":[{\"token\":\" white\",\"logprob\":-7.89631e-7,\"bytes\":[32,119,104,105,116,101]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\",\",\"logprobs\":[{\"token\":\",\",\"logprob\":-0.0014890312,\"bytes\":[44]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" the\",\"logprobs\":[{\"token\":\" the\",\"logprob\":-0.0110956915,\"bytes\":[32,116,104,101]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" bright\",\"logprobs\":[{\"token\":\" bright\",\"logprob\":0.0,\"bytes\":[32,98,114,105,103,104,116]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" blessed\",\"logprobs\":[{\"token\":\" blessed\",\"logprob\":-0.000045848617,\"bytes\":[32,98,108,101,115,115,101,100]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" days\",\"logprobs\":[{\"token\":\" days\",\"logprob\":-0.000010802739,\"bytes\":[32,100,97,121,115]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\",\",\"logprobs\":[{\"token\":\",\",\"logprob\":-0.00001700133,\"bytes\":[44]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" the\",\"logprobs\":[{\"token\":\" the\",\"logprob\":-0.0000118755715,\"bytes\":[32,116,104,101]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" dark\",\"logprobs\":[{\"token\":\" dark\",\"logprob\":-5.5122365e-7,\"bytes\":[32,100,97,114,107]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" sacred\",\"logprobs\":[{\"token\":\" sacred\",\"logprob\":-5.4385737e-6,\"bytes\":[32,115,97,99,114,101,100]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" nights\",\"logprobs\":[{\"token\":\" nights\",\"logprob\":-4.00813e-6,\"bytes\":[32,110,105,103,104,116,115]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\",\",\"logprobs\":[{\"token\":\",\",\"logprob\":-0.0036910512,\"bytes\":[44]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" and\",\"logprobs\":[{\"token\":\" and\",\"logprob\":-0.0031903093,\"bytes\":[32,97,110,100]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" I\",\"logprobs\":[{\"token\":\" I\",\"logprob\":-1.504853e-6,\"bytes\":[32,73]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" think\",\"logprobs\":[{\"token\":\" think\",\"logprob\":-4.3202e-7,\"bytes\":[32,116,104,105,110,107]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" to\",\"logprobs\":[{\"token\":\" to\",\"logprob\":-1.9361265e-7,\"bytes\":[32,116,111]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" myself\",\"logprobs\":[{\"token\":\" myself\",\"logprob\":-1.7432603e-6,\"bytes\":[32,109,121,115,101,108,102]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\",\",\"logprobs\":[{\"token\":\",\",\"logprob\":-0.29254505,\"bytes\":[44]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" what\",\"logprobs\":[{\"token\":\" what\",\"logprob\":-0.016815351,\"bytes\":[32,119,104,97,116]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" a\",\"logprobs\":[{\"token\":\" a\",\"logprob\":-3.1281633e-7,\"bytes\":[32,97]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" wonderful\",\"logprobs\":[{\"token\":\" wonderful\",\"logprob\":-2.1008714e-6,\"bytes\":[32,119,111,110,100,101,114,102,117,108]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\" world\",\"logprobs\":[{\"token\":\" world\",\"logprob\":-8.180258e-6,\"bytes\":[32,119,111,114,108,100]}]}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\".\",\"logprobs\":[{\"token\":\".\",\"logprob\":-0.014231676,\"bytes\":[46]}]}\n\ndata: {\"type\":\"transcript.text.done\",\"text\":\"I see skies of blue and clouds of white, the bright blessed days, the dark sacred nights, and I think to myself, what a wonderful world.\",\"logprobs\":[{\"token\":\"I\",\"logprob\":-0.00007588794,\"bytes\":[73]},{\"token\":\" see\",\"logprob\":-3.1281633e-7,\"bytes\":[32,115,101,101]},{\"token\":\" skies\",\"logprob\":-2.3392786e-6,\"bytes\":[32,115,107,105,101,115]},{\"token\":\" of\",\"logprob\":-3.1281633e-7,\"bytes\":[32,111,102]},{\"token\":\" blue\",\"logprob\":-1.0280384e-6,\"bytes\":[32,98,108,117,101]},{\"token\":\" and\",\"logprob\":-0.0005108566,\"bytes\":[32,97,110,100]},{\"token\":\" clouds\",\"logprob\":-1.9361265e-7,\"bytes\":[32,99,108,111,117,100,115]},{\"token\":\" of\",\"logprob\":-1.9361265e-7,\"bytes\":[32,111,102]},{\"token\":\" white\",\"logprob\":-7.89631e-7,\"bytes\":[32,119,104,105,116,101]},{\"token\":\",\",\"logprob\":-0.0014890312,\"bytes\":[44]},{\"token\":\" the\",\"logprob\":-0.0110956915,\"bytes\":[32,116,104,101]},{\"token\":\" bright\",\"logprob\":0.0,\"bytes\":[32,98,114,105,103,104,116]},{\"token\":\" blessed\",\"logprob\":-0.000045848617,\"bytes\":[32,98,108,101,115,115,101,100]},{\"token\":\" days\",\"logprob\":-0.000010802739,\"bytes\":[32,100,97,121,115]},{\"token\":\",\",\"logprob\":-0.00001700133,\"bytes\":[44]},{\"token\":\" the\",\"logprob\":-0.0000118755715,\"bytes\":[32,116,104,101]},{\"token\":\" dark\",\"logprob\":-5.5122365e-7,\"bytes\":[32,100,97,114,107]},{\"token\":\" sacred\",\"logprob\":-5.4385737e-6,\"bytes\":[32,115,97,99,114,101,100]},{\"token\":\" nights\",\"logprob\":-4.00813e-6,\"bytes\":[32,110,105,103,104,116,115]},{\"token\":\",\",\"logprob\":-0.0036910512,\"bytes\":[44]},{\"token\":\" and\",\"logprob\":-0.0031903093,\"bytes\":[32,97,110,100]},{\"token\":\" I\",\"logprob\":-1.504853e-6,\"bytes\":[32,73]},{\"token\":\" think\",\"logprob\":-4.3202e-7,\"bytes\":[32,116,104,105,110,107]},{\"token\":\" to\",\"logprob\":-1.9361265e-7,\"bytes\":[32,116,111]},{\"token\":\" myself\",\"logprob\":-1.7432603e-6,\"bytes\":[32,109,121,115,101,108,102]},{\"token\":\",\",\"logprob\":-0.29254505,\"bytes\":[44]},{\"token\":\" what\",\"logprob\":-0.016815351,\"bytes\":[32,119,104,97,116]},{\"token\":\" a\",\"logprob\":-3.1281633e-7,\"bytes\":[32,97]},{\"token\":\" wonderful\",\"logprob\":-2.1008714e-6,\"bytes\":[32,119,111,110,100,101,114,102,117,108]},{\"token\":\" world\",\"logprob\":-8.180258e-6,\"bytes\":[32,119,111,114,108,100]},{\"token\":\".\",\"logprob\":-0.014231676,\"bytes\":[46]}]}\n"
                  }
                ]
              }
            },
            {
              "description": "Logprobs",
              "codeblock": {
                "title": "Logprobs",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"text\": \"Hey, my knee is hurting and I want to see the doctor tomorrow ideally.\",\n  \"logprobs\": [\n    { \"token\": \"Hey\", \"logprob\": -1.0415299, \"bytes\": [72, 101, 121] },\n    { \"token\": \",\", \"logprob\": -9.805982e-5, \"bytes\": [44] },\n    { \"token\": \" my\", \"logprob\": -0.00229799, \"bytes\": [32, 109, 121] },\n    {\n      \"token\": \" knee\",\n      \"logprob\": -4.7159858e-5,\n      \"bytes\": [32, 107, 110, 101, 101]\n    },\n    { \"token\": \" is\", \"logprob\": -0.043909557, \"bytes\": [32, 105, 115] },\n    {\n      \"token\": \" hurting\",\n      \"logprob\": -1.1041146e-5,\n      \"bytes\": [32, 104, 117, 114, 116, 105, 110, 103]\n    },\n    { \"token\": \" and\", \"logprob\": -0.011076359, \"bytes\": [32, 97, 110, 100] },\n    { \"token\": \" I\", \"logprob\": -5.3193703e-6, \"bytes\": [32, 73] },\n    {\n      \"token\": \" want\",\n      \"logprob\": -0.0017156356,\n      \"bytes\": [32, 119, 97, 110, 116]\n    },\n    { \"token\": \" to\", \"logprob\": -7.89631e-7, \"bytes\": [32, 116, 111] },\n    { \"token\": \" see\", \"logprob\": -5.5122365e-7, \"bytes\": [32, 115, 101, 101] },\n    { \"token\": \" the\", \"logprob\": -0.0040786397, \"bytes\": [32, 116, 104, 101] },\n    {\n      \"token\": \" doctor\",\n      \"logprob\": -2.3392786e-6,\n      \"bytes\": [32, 100, 111, 99, 116, 111, 114]\n    },\n    {\n      \"token\": \" tomorrow\",\n      \"logprob\": -7.89631e-7,\n      \"bytes\": [32, 116, 111, 109, 111, 114, 114, 111, 119]\n    },\n    {\n      \"token\": \" ideally\",\n      \"logprob\": -0.5800861,\n      \"bytes\": [32, 105, 100, 101, 97, 108, 108, 121]\n    },\n    { \"token\": \".\", \"logprob\": -0.00011093382, \"bytes\": [46] }\n  ]\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Word timestamps",
              "codeblock": {
                "title": "Word timestamps",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"task\": \"transcribe\",\n  \"language\": \"english\",\n  \"duration\": 8.470000267028809,\n  \"text\": \"The beach was a popular spot on a hot summer day. People were swimming in the ocean, building sandcastles, and playing beach volleyball.\",\n  \"words\": [\n    {\n      \"word\": \"The\",\n      \"start\": 0.0,\n      \"end\": 0.23999999463558197\n    },\n    ...\n    {\n      \"word\": \"volleyball\",\n      \"start\": 7.400000095367432,\n      \"end\": 7.900000095367432\n    }\n  ]\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Segment timestamps",
              "codeblock": {
                "title": "Segment timestamps",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"task\": \"transcribe\",\n  \"language\": \"english\",\n  \"duration\": 8.470000267028809,\n  \"text\": \"The beach was a popular spot on a hot summer day. People were swimming in the ocean, building sandcastles, and playing beach volleyball.\",\n  \"segments\": [\n    {\n      \"id\": 0,\n      \"seek\": 0,\n      \"start\": 0.0,\n      \"end\": 3.319999933242798,\n      \"text\": \" The beach was a popular spot on a hot summer day.\",\n      \"tokens\": [\n        50364, 440, 7534, 390, 257, 3743, 4008, 322, 257, 2368, 4266, 786, 13, 50530\n      ],\n      \"temperature\": 0.0,\n      \"avg_logprob\": -0.2860786020755768,\n      \"compression_ratio\": 1.2363636493682861,\n      \"no_speech_prob\": 0.00985979475080967\n    },\n    ...\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "multipart/form-data",
            "description": "",
            "properties": [
              {
                "name": "file",
                "type": "string",
                "description": "The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "whisper-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-transcribe",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "language",
                "type": "string",
                "description": "The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.\n",
                "meta": []
              },
              {
                "name": "prompt",
                "type": "string",
                "description": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language.\n",
                "meta": []
              },
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "json"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "text",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "srt",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "verbose_json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "vtt",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/AudioResponseFormat",
                  "canonical": "objects/AudioResponseFormat",
                  "label": "AudioResponseFormat"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "include[]",
                "type": "$$array",
                "description": "Additional information to include in the transcription response. \n`logprobs` will return the log probabilities of the tokens in the \nresponse to understand the model's confidence in the transcription. \n`logprobs` only works with response_format set to `json` and only with \nthe models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`.\n",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "logprobs",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "defaults",
                      "value": []
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    },
                    {
                      "name": "const",
                      "value": "logprobs"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  },
                  "symbolDef": {
                    "id": "#/components/schemas/TranscriptionInclude",
                    "canonical": "objects/TranscriptionInclude",
                    "label": "TranscriptionInclude"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/TranscriptionInclude",
                  "canonical": "objects/TranscriptionInclude",
                  "label": "TranscriptionInclude"
                }
              },
              {
                "name": "timestamp_granularities[]",
                "type": "$$array",
                "description": "The timestamp granularities to populate for this transcription. `response_format` must be set `verbose_json` to use timestamp granularities. Either or both of these options are supported: `word`, or `segment`. Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": [
                      "segment"
                    ]
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$enum",
                  "properties": [
                    {
                      "name": "word",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "segment",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                }
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). \nSee the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)\nfor more information.\n\nNote: Streaming is not supported for the `whisper-1` model and will be ignored.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "multipart/form-data"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateTranscriptionRequest",
              "canonical": "objects/CreateTranscriptionRequest",
              "label": "CreateTranscriptionRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The [transcription object](/docs/api-reference/audio/json-object), a [verbose transcription object](/docs/api-reference/audio/verbose-json-object) or a [stream of transcript events](/docs/api-reference/audio/transcript-text-delta-event).",
        "properties": []
      }
    ]
  },
  {
    "title": "Create translation",
    "canonical": "audio/createTranslation",
    "description": "Translates audio into English.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/audio/translations",
      "group": [
        "Platform APIs",
        "Audio"
      ],
      "fullPath": "https://api.openai.com/v1/audio/translations",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/audio/translations \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: multipart/form-data\" \\\n  -F file=\"@/path/to/file/german.m4a\" \\\n  -F model=\"whisper-1\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\naudio_file = open(\"speech.mp3\", \"rb\")\ntranscript = client.audio.translations.create(\n  model=\"whisper-1\",\n  file=audio_file\n)\n"
                  },
                  {
                    "title": "javascript",
                    "language": "javascript",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n    const translation = await openai.audio.translations.create({\n        file: fs.createReadStream(\"speech.mp3\"),\n        model: \"whisper-1\",\n    });\n\n    console.log(translation.text);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Audio;\n\nstring audioFilePath = \"audio.mp3\";\n\nAudioClient client = new(\n    model: \"whisper-1\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nAudioTranscription transcription = client.TranscribeAudio(audioFilePath);\n\nConsole.WriteLine($\"{transcription.Text}\");\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"text\": \"Hello, my name is Wolfgang and I come from Germany. Where are you heading today?\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "multipart/form-data",
            "description": "",
            "properties": [
              {
                "name": "file",
                "type": "string",
                "description": "The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "whisper-1"
                      }
                    ],
                    "properties": [
                      {
                        "name": "whisper-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "prompt",
                "type": "string",
                "description": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English.\n",
                "meta": []
              },
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "json"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "text",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "srt",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "verbose_json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "vtt",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "multipart/form-data"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateTranslationRequest",
              "canonical": "objects/CreateTranslationRequest",
              "label": "CreateTranslationRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The translated text.",
        "properties": []
      }
    ]
  },
  {
    "title": "The transcription object (JSON)",
    "description": "Represents a transcription response returned by model, based on the provided input.",
    "canonical": "audio/json-object",
    "definitions": [
      {
        "title": "CreateTranscriptionResponseJson",
        "properties": [
          {
            "name": "text",
            "type": "string",
            "description": "The transcribed text.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "logprobs",
            "type": "$$array",
            "description": "The log probabilities of the tokens in the transcription. Only returned with the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` if `logprobs` is added to the `include` array.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "token",
                  "type": "string",
                  "description": "The token in the transcription.",
                  "meta": []
                },
                {
                  "name": "logprob",
                  "type": "number",
                  "description": "The log probability of the token.",
                  "meta": []
                },
                {
                  "name": "bytes",
                  "type": "$$array",
                  "description": "The bytes of the token.",
                  "meta": [],
                  "properties": [],
                  "ofProperty": {
                    "name": "",
                    "type": "number",
                    "properties": [],
                    "description": "",
                    "meta": []
                  }
                }
              ],
              "description": "",
              "meta": []
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CreateTranscriptionResponseJson",
          "canonical": "objects/CreateTranscriptionResponseJson",
          "label": "CreateTranscriptionResponseJson"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"text\": \"Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that.\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CreateTranscriptionResponseJson",
      "group": [
        "Platform APIs",
        "Audio"
      ]
    }
  },
  {
    "title": "The transcription object (Verbose JSON)",
    "description": "Represents a verbose json transcription response returned by model, based on the provided input.",
    "canonical": "audio/verbose-json-object",
    "definitions": [
      {
        "title": "CreateTranscriptionResponseVerboseJson",
        "properties": [
          {
            "name": "language",
            "type": "string",
            "description": "The language of the input audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "duration",
            "type": "number",
            "description": "The duration of the input audio.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "text",
            "type": "string",
            "description": "The transcribed text.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "words",
            "type": "$$array",
            "description": "Extracted words and their corresponding timestamps.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "word",
                  "type": "string",
                  "description": "The text content of the word.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "start",
                  "type": "number",
                  "description": "Start time of the word in seconds.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "end",
                  "type": "number",
                  "description": "End time of the word in seconds.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/TranscriptionWord",
                "canonical": "objects/TranscriptionWord",
                "label": "TranscriptionWord"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/TranscriptionWord",
              "canonical": "objects/TranscriptionWord",
              "label": "TranscriptionWord"
            }
          },
          {
            "name": "segments",
            "type": "$$array",
            "description": "Segments of the transcribed text and their corresponding details.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "id",
                  "type": "integer",
                  "description": "Unique identifier of the segment.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "seek",
                  "type": "integer",
                  "description": "Seek offset of the segment.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "start",
                  "type": "number",
                  "description": "Start time of the segment in seconds.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "end",
                  "type": "number",
                  "description": "End time of the segment in seconds.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "text",
                  "type": "string",
                  "description": "Text content of the segment.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "tokens",
                  "type": "$$array",
                  "description": "Array of token IDs for the text content.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [],
                  "ofProperty": {
                    "name": "",
                    "type": "integer",
                    "properties": [],
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                },
                {
                  "name": "temperature",
                  "type": "number",
                  "description": "Temperature parameter used for generating the segment.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "avg_logprob",
                  "type": "number",
                  "description": "Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "compression_ratio",
                  "type": "number",
                  "description": "Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "no_speech_prob",
                  "type": "number",
                  "description": "Probability of no speech in the segment. If the value is higher than 1.0 and the `avg_logprob` is below -1, consider this segment silent.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/TranscriptionSegment",
                "canonical": "objects/TranscriptionSegment",
                "label": "TranscriptionSegment"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/TranscriptionSegment",
              "canonical": "objects/TranscriptionSegment",
              "label": "TranscriptionSegment"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CreateTranscriptionResponseVerboseJson",
          "canonical": "objects/CreateTranscriptionResponseVerboseJson",
          "label": "CreateTranscriptionResponseVerboseJson"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"task\": \"transcribe\",\n  \"language\": \"english\",\n  \"duration\": 8.470000267028809,\n  \"text\": \"The beach was a popular spot on a hot summer day. People were swimming in the ocean, building sandcastles, and playing beach volleyball.\",\n  \"segments\": [\n    {\n      \"id\": 0,\n      \"seek\": 0,\n      \"start\": 0.0,\n      \"end\": 3.319999933242798,\n      \"text\": \" The beach was a popular spot on a hot summer day.\",\n      \"tokens\": [\n        50364, 440, 7534, 390, 257, 3743, 4008, 322, 257, 2368, 4266, 786, 13, 50530\n      ],\n      \"temperature\": 0.0,\n      \"avg_logprob\": -0.2860786020755768,\n      \"compression_ratio\": 1.2363636493682861,\n      \"no_speech_prob\": 0.00985979475080967\n    },\n    ...\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CreateTranscriptionResponseVerboseJson",
      "group": [
        "Platform APIs",
        "Audio"
      ]
    }
  },
  {
    "title": "Stream Event (transcript.text.delta)",
    "description": "Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.",
    "canonical": "audio/transcript-text-delta-event",
    "definitions": [
      {
        "title": "TranscriptTextDeltaEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `transcript.text.delta`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "transcript.text.delta"
              }
            ],
            "properties": [
              {
                "name": "transcript.text.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "delta",
            "type": "string",
            "description": "The text delta that was additionally transcribed.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "logprobs",
            "type": "$$array",
            "description": "The log probabilities of the delta. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "token",
                  "type": "string",
                  "description": "The token that was used to generate the log probability.\n",
                  "meta": []
                },
                {
                  "name": "logprob",
                  "type": "number",
                  "description": "The log probability of the token.\n",
                  "meta": []
                },
                {
                  "name": "bytes",
                  "type": "array",
                  "description": "The bytes that were used to generate the log probability.\n",
                  "meta": []
                }
              ],
              "description": "",
              "meta": []
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/TranscriptTextDeltaEvent",
          "canonical": "objects/TranscriptTextDeltaEvent",
          "label": "TranscriptTextDeltaEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"transcript.text.delta\",\n  \"delta\": \" wonderful\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "TranscriptTextDeltaEvent",
      "group": [
        "Platform APIs",
        "Audio"
      ]
    }
  },
  {
    "title": "Stream Event (transcript.text.done)",
    "description": "Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.",
    "canonical": "audio/transcript-text-done-event",
    "definitions": [
      {
        "title": "TranscriptTextDoneEvent",
        "properties": [
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of the event. Always `transcript.text.done`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "transcript.text.done"
              }
            ],
            "properties": [
              {
                "name": "transcript.text.done",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "text",
            "type": "string",
            "description": "The text that was transcribed.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "logprobs",
            "type": "$$array",
            "description": "The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "token",
                  "type": "string",
                  "description": "The token that was used to generate the log probability.\n",
                  "meta": []
                },
                {
                  "name": "logprob",
                  "type": "number",
                  "description": "The log probability of the token.\n",
                  "meta": []
                },
                {
                  "name": "bytes",
                  "type": "array",
                  "description": "The bytes that were used to generate the log probability.\n",
                  "meta": []
                }
              ],
              "description": "",
              "meta": []
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/TranscriptTextDoneEvent",
          "canonical": "objects/TranscriptTextDoneEvent",
          "label": "TranscriptTextDoneEvent"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"type\": \"transcript.text.done\",\n  \"text\": \"I see skies of blue and clouds of white, the bright blessed days, the dark sacred nights, and I think to myself, what a wonderful world.\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "TranscriptTextDoneEvent",
      "group": [
        "Platform APIs",
        "Audio"
      ]
    }
  },
  {
    "title": "Create image",
    "canonical": "images/create",
    "description": "Creates an image given a prompt. [Learn more](/docs/guides/images).\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/images/generations",
      "group": [
        "Platform APIs",
        "Images"
      ],
      "fullPath": "https://api.openai.com/v1/images/generations",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/images/generations \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"gpt-image-1\",\n    \"prompt\": \"A cute baby sea otter\",\n    \"n\": 1,\n    \"size\": \"1024x1024\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "import base64\nfrom openai import OpenAI\nclient = OpenAI()\n\nimg = client.images.generate(\n    model=\"gpt-image-1\",\n    prompt=\"A cute baby sea otter\",\n    n=1,\n    size=\"1024x1024\"\n)\n\nimage_bytes = base64.b64decode(img.data[0].b64_json)\nwith open(\"output.png\", \"wb\") as f:\n    f.write(image_bytes)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nimport { writeFile } from \"fs/promises\";\n\nconst client = new OpenAI();\n\nconst img = await client.images.generate({\n  model: \"gpt-image-1\",\n  prompt: \"A cute baby sea otter\",\n  n: 1,\n  size: \"1024x1024\"\n});\n\nconst imageBuffer = Buffer.from(img.data[0].b64_json, \"base64\");\nawait writeFile(\"output.png\", imageBuffer);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"created\": 1713833628,\n  \"data\": [\n    {\n      \"b64_json\": \"...\"\n    }\n  ],\n  \"usage\": {\n    \"total_tokens\": 100,\n    \"input_tokens\": 50,\n    \"output_tokens\": 50,\n    \"input_tokens_details\": {\n      \"text_tokens\": 10,\n      \"image_tokens\": 40\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "prompt",
                "type": "string",
                "description": "A text description of the desired image(s). The maximum length is 32000 characters for `gpt-image-1`, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "A cute baby sea otter"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "dall-e-2",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "dall-e-3",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-image-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "n",
                "type": "integer",
                "description": "The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only `n=1` is supported.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 10
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "quality",
                "type": "$$enum",
                "description": "The quality of the image that will be generated. \n\n- `auto` (default value) will automatically select the best quality for the given model.\n- `high`, `medium` and `low` are supported for `gpt-image-1`.\n- `hd` and `standard` are supported for `dall-e-3`.\n- `standard` is the only option for `dall-e-2`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "medium"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "standard",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "hd",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "The format in which generated images with `dall-e-2` and `dall-e-3` are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated. This parameter isn't supported for `gpt-image-1` which will always return base64-encoded images.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "url"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "url"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "url",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "b64_json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "output_format",
                "type": "$$enum",
                "description": "The format in which the generated images are returned. This parameter is only supported for `gpt-image-1`. Must be one of `png`, `jpeg`, or `webp`.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "png"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "png"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "png",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "jpeg",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "webp",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "output_compression",
                "type": "integer",
                "description": "The compression level (0-100%) for the generated images. This parameter is only supported for `gpt-image-1` with the `webp` or `jpeg` output formats, and defaults to 100.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 100
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 100
                  }
                ]
              },
              {
                "name": "size",
                "type": "$$enum",
                "description": "The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for `gpt-image-1`, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "1024x1024"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1024x1024",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1536x1024",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1024x1536",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "256x256",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "512x512",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1792x1024",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1024x1792",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "moderation",
                "type": "$$enum",
                "description": "Control the content-moderation level for images generated by `gpt-image-1`. Must be either `low` for less restrictive filtering or `auto` (default value).",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "low"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "background",
                "type": "$$enum",
                "description": "Allows to set transparency for the background of the generated image(s). \nThis parameter is only supported for `gpt-image-1`. Must be one of \n`transparent`, `opaque` or `auto` (default value). When `auto` is used, the \nmodel will automatically determine the best background for the image.\n\nIf `transparent`, the output format needs to support transparency, so it \nshould be set to either `png` (default value) or `webp`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "transparent"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "transparent",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "opaque",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "style",
                "type": "$$enum",
                "description": "The style of the generated images. This parameter is only supported for `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "vivid"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "vivid"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "vivid",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "natural",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateImageRequest",
              "canonical": "objects/CreateImageRequest",
              "label": "CreateImageRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "Returns a list of [image](/docs/api-reference/images/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create image edit",
    "canonical": "images/createEdit",
    "description": "Creates an edited or extended image given one or more source images and a prompt. This endpoint only supports `gpt-image-1` and `dall-e-2`.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/images/edits",
      "group": [
        "Platform APIs",
        "Images"
      ],
      "fullPath": "https://api.openai.com/v1/images/edits",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -s -D >(grep -i x-request-id >&2) \\\n  -o >(jq -r '.data[0].b64_json' | base64 --decode > gift-basket.png) \\\n  -X POST \"https://api.openai.com/v1/images/edits\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -F \"model=gpt-image-1\" \\\n  -F \"image[]=@body-lotion.png\" \\\n  -F \"image[]=@bath-bomb.png\" \\\n  -F \"image[]=@incense-kit.png\" \\\n  -F \"image[]=@soap.png\" \\\n  -F 'prompt=Create a lovely gift basket with these four items in it'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "import base64\nfrom openai import OpenAI\nclient = OpenAI()\n\nprompt = \"\"\"\nGenerate a photorealistic image of a gift basket on a white background \nlabeled 'Relax & Unwind' with a ribbon and handwriting-like font, \ncontaining all the items in the reference pictures.\n\"\"\"\n\nresult = client.images.edit(\n    model=\"gpt-image-1\",\n    image=[\n        open(\"body-lotion.png\", \"rb\"),\n        open(\"bath-bomb.png\", \"rb\"),\n        open(\"incense-kit.png\", \"rb\"),\n        open(\"soap.png\", \"rb\"),\n    ],\n    prompt=prompt\n)\n\nimage_base64 = result.data[0].b64_json\nimage_bytes = base64.b64decode(image_base64)\n\n# Save the image to a file\nwith open(\"gift-basket.png\", \"wb\") as f:\n    f.write(image_bytes)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import fs from \"fs\";\nimport OpenAI, { toFile } from \"openai\";\n\nconst client = new OpenAI();\n\nconst imageFiles = [\n    \"bath-bomb.png\",\n    \"body-lotion.png\",\n    \"incense-kit.png\",\n    \"soap.png\",\n];\n\nconst images = await Promise.all(\n    imageFiles.map(async (file) =>\n        await toFile(fs.createReadStream(file), null, {\n            type: \"image/png\",\n        })\n    ),\n);\n\nconst rsp = await client.images.edit({\n    model: \"gpt-image-1\",\n    image: images,\n    prompt: \"Create a lovely gift basket with these four items in it\",\n});\n\n// Save the image to a file\nconst image_base64 = rsp.data[0].b64_json;\nconst image_bytes = Buffer.from(image_base64, \"base64\");\nfs.writeFileSync(\"basket.png\", image_bytes);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"created\": 1713833628,\n  \"data\": [\n    {\n      \"b64_json\": \"...\"\n    }\n  ],\n  \"usage\": {\n    \"total_tokens\": 100,\n    \"input_tokens\": 50,\n    \"output_tokens\": 50,\n    \"input_tokens_details\": {\n      \"text_tokens\": 10,\n      \"image_tokens\": 40\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "multipart/form-data",
            "description": "",
            "properties": [
              {
                "name": "image",
                "type": "$$union",
                "description": "The image(s) to edit. Must be a supported image file or an array of images.\n\nFor `gpt-image-1`, each image should be a `png`, `webp`, or `jpg` file less \nthan 25MB. You can provide up to 16 images.\n\nFor `dall-e-2`, you can only provide one image, and it should be a square \n`png` file less than 4MB.\n",
                "properties": [
                  {
                    "name": "image",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "image",
                    "type": "$$array",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "prompt",
                "type": "string",
                "description": "A text description of the desired image(s). The maximum length is 1000 characters for `dall-e-2`, and 32000 characters for `gpt-image-1`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "A cute baby sea otter wearing a beret"
                  }
                ]
              },
              {
                "name": "mask",
                "type": "string",
                "description": "An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.",
                "meta": []
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "dall-e-2",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-image-1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "n",
                "type": "integer",
                "description": "The number of images to generate. Must be between 1 and 10.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 10
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "size",
                "type": "$$enum",
                "description": "The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "1024x1024"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "1024x1024"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "256x256",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "512x512",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1024x1024",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1536x1024",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1024x1536",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "The format in which the generated images are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated. This parameter is only supported for `dall-e-2`, as `gpt-image-1` will always return base64-encoded images.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "url"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "url"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "url",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "b64_json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              },
              {
                "name": "quality",
                "type": "$$enum",
                "description": "The quality of the image that will be generated. `high`, `medium` and `low` are only supported for `gpt-image-1`. `dall-e-2` only supports `standard` quality. Defaults to `auto`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "high"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "standard",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "multipart/form-data"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateImageEditRequest",
              "canonical": "objects/CreateImageEditRequest",
              "label": "CreateImageEditRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "Returns a list of [image](/docs/api-reference/images/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create image variation",
    "canonical": "images/createVariation",
    "description": "Creates a variation of a given image. This endpoint only supports `dall-e-2`.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/images/variations",
      "group": [
        "Platform APIs",
        "Images"
      ],
      "fullPath": "https://api.openai.com/v1/images/variations",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/images/variations \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -F image=\"@otter.png\" \\\n  -F n=2 \\\n  -F size=\"1024x1024\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.images.create_variation(\n  image=open(\"image_edit_original.png\", \"rb\"),\n  n=2,\n  size=\"1024x1024\"\n)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const image = await openai.images.createVariation({\n    image: fs.createReadStream(\"otter.png\"),\n  });\n\n  console.log(image.data);\n}\nmain();"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Images;\n\nImageClient client = new(\n    model: \"dall-e-2\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nGeneratedImage image = client.GenerateImageVariation(imageFilePath: \"otter.png\");\n\nConsole.WriteLine(image.ImageUri);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"created\": 1589478378,\n  \"data\": [\n    {\n      \"url\": \"https://...\"\n    },\n    {\n      \"url\": \"https://...\"\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "multipart/form-data",
            "description": "",
            "properties": [
              {
                "name": "image",
                "type": "string",
                "description": "The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "The model to use for image generation. Only `dall-e-2` is supported at this time.",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "dall-e-2"
                      }
                    ],
                    "properties": [
                      {
                        "name": "dall-e-2",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "n",
                "type": "integer",
                "description": "The number of images to generate. Must be between 1 and 10.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 10
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "The format in which the generated images are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "url"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "url"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "url",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "b64_json",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "size",
                "type": "$$enum",
                "description": "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "1024x1024"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "1024x1024"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "256x256",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "512x512",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "1024x1024",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "multipart/form-data"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateImageVariationRequest",
              "canonical": "objects/CreateImageVariationRequest",
              "label": "CreateImageVariationRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "Returns a list of [image](/docs/api-reference/images/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "The image generation response",
    "description": "The response from the image generation endpoint.",
    "canonical": "images/object",
    "definitions": [
      {
        "title": "ImagesResponse",
        "properties": [
          {
            "name": "created",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the image was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "data",
            "type": "$$array",
            "description": "The list of generated images.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "b64_json",
                  "type": "string",
                  "description": "The base64-encoded JSON of the generated image. Default value for `gpt-image-1`, and only present if `response_format` is set to `b64_json` for `dall-e-2` and `dall-e-3`.",
                  "meta": []
                },
                {
                  "name": "url",
                  "type": "string",
                  "description": "When using `dall-e-2` or `dall-e-3`, the URL of the generated image if `response_format` is set to `url` (default value). Unsupported for `gpt-image-1`.",
                  "meta": []
                },
                {
                  "name": "revised_prompt",
                  "type": "string",
                  "description": "For `dall-e-3` only, the revised prompt that was used to generate the image.",
                  "meta": []
                }
              ],
              "description": "Represents the content or the URL of an image generated by the OpenAI API.",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/Image",
                "canonical": "objects/Image",
                "label": "Image"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/Image",
              "canonical": "objects/Image",
              "label": "Image"
            }
          },
          {
            "name": "usage",
            "type": "object",
            "description": "For `gpt-image-1` only, the token usage information for the image generation.\n",
            "meta": [],
            "properties": [
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "The total number of tokens (images and text) used for the image generation.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "input_tokens",
                "type": "integer",
                "description": "The number of tokens (images and text) in the input prompt.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "output_tokens",
                "type": "integer",
                "description": "The number of image tokens in the output image.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "input_tokens_details",
                "type": "object",
                "description": "The input tokens detailed information for the image generation.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "text_tokens",
                    "type": "integer",
                    "description": "The number of text tokens in the input prompt.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "image_tokens",
                    "type": "integer",
                    "description": "The number of image tokens in the input prompt.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ImagesResponse",
          "canonical": "objects/ImagesResponse",
          "label": "ImagesResponse"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"created\": 1713833628,\n  \"data\": [\n    {\n      \"b64_json\": \"...\"\n    }\n  ],\n  \"usage\": {\n    \"total_tokens\": 100,\n    \"input_tokens\": 50,\n    \"output_tokens\": 50,\n    \"input_tokens_details\": {\n      \"text_tokens\": 10,\n      \"image_tokens\": 40\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ImagesResponse",
      "group": [
        "Platform APIs",
        "Images"
      ]
    }
  },
  {
    "title": "Create embeddings",
    "canonical": "embeddings/create",
    "description": "Creates an embedding vector representing the input text.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/embeddings",
      "group": [
        "Platform APIs",
        "Embeddings"
      ],
      "fullPath": "https://api.openai.com/v1/embeddings",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/embeddings \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"input\": \"The food was delicious and the waiter...\",\n    \"model\": \"text-embedding-ada-002\",\n    \"encoding_format\": \"float\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.embeddings.create(\n  model=\"text-embedding-ada-002\",\n  input=\"The food was delicious and the waiter...\",\n  encoding_format=\"float\"\n)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const embedding = await openai.embeddings.create({\n    model: \"text-embedding-ada-002\",\n    input: \"The quick brown fox jumped over the lazy dog\",\n    encoding_format: \"float\",\n  });\n\n  console.log(embedding);\n}\n\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Embeddings;\n\nEmbeddingClient client = new(\n    model: \"text-embedding-3-small\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nOpenAIEmbedding embedding = client.GenerateEmbedding(input: \"The quick brown fox jumped over the lazy dog\");\nReadOnlyMemory<float> vector = embedding.ToFloats();\n\nfor (int i = 0; i < vector.Length; i++)\n{\n    Console.WriteLine($\"  [{i,4}] = {vector.Span[i]}\");\n}\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"embedding\",\n      \"embedding\": [\n        0.0023064255,\n        -0.009327292,\n        .... (1536 floats total for ada-002)\n        -0.0028842222,\n      ],\n      \"index\": 0\n    }\n  ],\n  \"model\": \"text-embedding-ada-002\",\n  \"usage\": {\n    \"prompt_tokens\": 8,\n    \"total_tokens\": 8\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "input",
                "type": "$$xor",
                "description": "Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for `text-embedding-ada-002`), cannot be an empty string, and any array must be 2048 dimensions or less. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. Some models may also impose a limit on total number of tokens summed across inputs.\n",
                "properties": [
                  {
                    "name": "string",
                    "type": "string",
                    "description": "The string that will be turned into an embedding.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": ""
                      },
                      {
                        "name": "example",
                        "value": "This is a test."
                      }
                    ]
                  },
                  {
                    "name": "array",
                    "type": "$$array",
                    "description": "The array of strings that will be turned into an embedding.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": ""
                          },
                          {
                            "name": "example",
                            "value": "['This is a test.']"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "array",
                    "type": "$$array",
                    "description": "The array of integers that will be turned into an embedding.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "[1212, 318, 257, 1332, 13]"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "integer",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "array",
                    "type": "$$array",
                    "description": "The array of arrays containing integers that will be turned into an embedding.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "[[1212, 318, 257, 1332, 13]]"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$array",
                      "properties": [],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "type": "integer",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    }
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "The quick brown fox jumped over the lazy dog"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "text-embedding-ada-002",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "text-embedding-3-small",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "text-embedding-3-large",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "encoding_format",
                "type": "$$enum",
                "description": "The format to return the embeddings in. Can be either `float` or [`base64`](https://pypi.org/project/pybase64/).",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "float"
                  },
                  {
                    "name": "example",
                    "value": "float"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "float",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "base64",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "dimensions",
                "type": "integer",
                "description": "The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.\n",
                "meta": [
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateEmbeddingRequest",
              "canonical": "objects/CreateEmbeddingRequest",
              "label": "CreateEmbeddingRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A list of [embedding](/docs/api-reference/embeddings/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "The embedding object",
    "description": "Represents an embedding vector returned by embedding endpoint.\n",
    "canonical": "embeddings/object",
    "definitions": [
      {
        "title": "Embedding",
        "properties": [
          {
            "name": "index",
            "type": "integer",
            "description": "The index of the embedding in the list of embeddings.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "embedding",
            "type": "$$array",
            "description": "The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings).\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "number",
              "properties": [],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"embedding\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "embedding"
              }
            ],
            "properties": [
              {
                "name": "embedding",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Embedding",
          "canonical": "objects/Embedding",
          "label": "embedding"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"embedding\",\n  \"embedding\": [\n    0.0023064255,\n    -0.009327292,\n    .... (1536 floats total for ada-002)\n    -0.0028842222,\n  ],\n  \"index\": 0\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Embedding",
      "group": [
        "Platform APIs",
        "Embeddings"
      ]
    }
  },
  {
    "title": "Create eval",
    "canonical": "evals/create",
    "description": "Create the structure of an evaluation that can be used to test a model's performance.\nAn evaluation is a set of testing criteria and a datasource. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.\nFor more information, see the [Evals guide](/docs/guides/evals).\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/evals",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n        \"name\": \"Sentiment\",\n        \"data_source_config\": {\n          \"type\": \"stored_completions\",\n          \"metadata\": {\n              \"usecase\": \"chatbot\"\n          }\n        },\n        \"testing_criteria\": [\n          {\n            \"type\": \"label_model\",\n            \"model\": \"o3-mini\",\n            \"input\": [\n              {\n                \"role\": \"developer\",\n                \"content\": \"Classify the sentiment of the following statement as one of 'positive', 'neutral', or 'negative'\"\n              },\n              {\n                \"role\": \"user\",\n                \"content\": \"Statement: {{item.input}}\"\n              }\n            ],\n            \"passing_labels\": [\n              \"positive\"\n            ],\n            \"labels\": [\n              \"positive\",\n              \"neutral\",\n              \"negative\"\n            ],\n            \"name\": \"Example label grader\"\n          }\n        ]\n      }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval\",\n  \"id\": \"eval_67b7fa9a81a88190ab4aa417e397ea21\",\n  \"data_source_config\": {\n    \"type\": \"stored_completions\",\n    \"metadata\": {\n      \"usecase\": \"chatbot\"\n    },\n    \"schema\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"item\": {\n          \"type\": \"object\"\n        },\n        \"sample\": {\n          \"type\": \"object\"\n        }\n      },\n      \"required\": [\n        \"item\",\n        \"sample\"\n      ]\n  },\n  \"testing_criteria\": [\n    {\n      \"name\": \"Example label grader\",\n      \"type\": \"label_model\",\n      \"model\": \"o3-mini\",\n      \"input\": [\n        {\n          \"type\": \"message\",\n          \"role\": \"developer\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"Classify the sentiment of the following statement as one of positive, neutral, or negative\"\n          }\n        },\n        {\n          \"type\": \"message\",\n          \"role\": \"user\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"Statement: {{item.input}}\"\n          }\n        }\n      ],\n      \"passing_labels\": [\n        \"positive\"\n      ],\n      \"labels\": [\n        \"positive\",\n        \"neutral\",\n        \"negative\"\n      ]\n    }\n  ],\n  \"name\": \"Sentiment\",\n  \"created_at\": 1740110490,\n  \"metadata\": {\n    \"description\": \"An eval for sentiment analysis\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The name of the evaluation.",
                "meta": []
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "data_source_config",
                "type": "$$xor",
                "description": "The configuration for the data source used for the evaluation runs.",
                "properties": [
                  {
                    "name": "CustomDataSourceConfig",
                    "type": "object",
                    "description": "A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs.\nThis schema is used to define the shape of the data that will be:\n- Used to define your testing criteria and\n- What data is required when creating a run\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/CreateEvalCustomDataSourceConfig",
                      "canonical": "objects/CreateEvalCustomDataSourceConfig",
                      "label": "CreateEvalCustomDataSourceConfig"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of data source. Always `custom`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": "custom"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "custom"
                          }
                        ],
                        "properties": [
                          {
                            "name": "custom",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "item_schema",
                        "type": "object",
                        "description": "The json schema for each row in the data source.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "example",
                            "value": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\"type\": \"string\"},\n    \"age\": {\"type\": \"integer\"}\n  },\n  \"required\": [\"name\", \"age\"]\n}\n"
                          }
                        ]
                      },
                      {
                        "name": "include_sample_schema",
                        "type": "boolean",
                        "description": "Whether the eval should expect you to populate the sample namespace (ie, by generating responses off of your data source)",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": false
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "LogsDataSourceConfig",
                    "type": "object",
                    "description": "A data source config which specifies the metadata property of your stored completions query.\nThis is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/CreateEvalLogsDataSourceConfig",
                      "canonical": "objects/CreateEvalLogsDataSourceConfig",
                      "label": "CreateEvalLogsDataSourceConfig"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of data source. Always `logs`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": "logs"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "logs"
                          }
                        ],
                        "properties": [
                          {
                            "name": "logs",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "metadata",
                        "type": "object",
                        "description": "Metadata filters for the logs data source.",
                        "meta": [
                          {
                            "name": "example",
                            "value": "{\n  \"use_case\": \"customer_support_agent\"\n}\n"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "testing_criteria",
                "type": "$$array",
                "description": "A list of graders for all eval runs in this group.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "LabelModelGrader",
                      "type": "object",
                      "description": "A LabelModelGrader object which uses a model to assign labels to each item\nin the evaluation.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/CreateEvalLabelModelGrader",
                        "canonical": "objects/CreateEvalLabelModelGrader",
                        "label": "CreateEvalLabelModelGrader"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The object type, which is always `label_model`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "label_model"
                            }
                          ],
                          "properties": [
                            {
                              "name": "label_model",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the grader.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "model",
                          "type": "string",
                          "description": "The model to use for the evaluation. Must support structured outputs.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "input",
                          "type": "$$array",
                          "description": "A list of chat messages forming the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "SimpleInputMessage",
                                "type": "object",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "role",
                                    "type": "string",
                                    "description": "The role of the message (e.g. \"system\", \"assistant\", \"user\").",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "content",
                                    "type": "string",
                                    "description": "The content of the message.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Eval message object",
                                "type": "object",
                                "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/EvalItem",
                                  "canonical": "objects/EvalItem",
                                  "label": "EvalItem"
                                },
                                "properties": [
                                  {
                                    "name": "role",
                                    "type": "$$enum",
                                    "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "user",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      },
                                      {
                                        "name": "assistant",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      },
                                      {
                                        "name": "system",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      },
                                      {
                                        "name": "developer",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "content",
                                    "type": "$$xor",
                                    "description": "Text inputs to the model - can contain template strings.\n",
                                    "properties": [
                                      {
                                        "name": "Text input",
                                        "type": "string",
                                        "description": "A text input to the model.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Input text",
                                        "type": "object",
                                        "description": "A text input to the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/InputTextContent",
                                          "canonical": "objects/InputTextContent",
                                          "label": "InputTextContent"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the input item. Always `input_text`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "defaults",
                                                "value": "input_text"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "input_text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "input_text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text input to the model.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Output text",
                                        "type": "object",
                                        "description": "A text output from the model.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of the output text. Always `output_text`.\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "output_text"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "output_text",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "The text output from the model.\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the message input. Always `message`.\n",
                                    "meta": [
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              }
                            ],
                            "description": "A chat message that makes up the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/CreateEvalItem",
                              "canonical": "objects/CreateEvalItem",
                              "label": "CreateEvalItem"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/CreateEvalItem",
                            "canonical": "objects/CreateEvalItem",
                            "label": "CreateEvalItem"
                          }
                        },
                        {
                          "name": "labels",
                          "type": "$$array",
                          "description": "The labels to classify to each item in the evaluation.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        },
                        {
                          "name": "passing_labels",
                          "type": "$$array",
                          "description": "The labels that indicate a passing result. Must be a subset of labels.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    {
                      "name": "StringCheckGrader",
                      "type": "object",
                      "description": "A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/EvalStringCheckGrader",
                        "canonical": "objects/EvalStringCheckGrader",
                        "label": "EvalStringCheckGrader"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The object type, which is always `string_check`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "string_check"
                            }
                          ],
                          "properties": [
                            {
                              "name": "string_check",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the grader.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "input",
                          "type": "string",
                          "description": "The input text. This may include template strings.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "reference",
                          "type": "string",
                          "description": "The reference text. This may include template strings.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "operation",
                          "type": "$$enum",
                          "description": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "eq",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ne",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "like",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "ilike",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "TextSimilarityGrader",
                      "type": "object",
                      "description": "A TextSimilarityGrader object which grades text based on similarity metrics.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/EvalTextSimilarityGrader",
                        "canonical": "objects/EvalTextSimilarityGrader",
                        "label": "EvalTextSimilarityGrader"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of grader.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "defaults",
                              "value": "text_similarity"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "text_similarity"
                            }
                          ],
                          "properties": [
                            {
                              "name": "text_similarity",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the grader.",
                          "meta": []
                        },
                        {
                          "name": "input",
                          "type": "string",
                          "description": "The text being graded.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "reference",
                          "type": "string",
                          "description": "The text being graded against.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "pass_threshold",
                          "type": "number",
                          "description": "A float score where a value greater than or equal indicates a passing grade.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "evaluation_metric",
                          "type": "$$enum",
                          "description": "The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "fuzzy_match",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "bleu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "gleu",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "meteor",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "rouge_1",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "rouge_2",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "rouge_3",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "rouge_4",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "rouge_5",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "rouge_l",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "PythonGrader",
                      "type": "object",
                      "description": "A PythonGrader object that runs a python script on the input.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/EvalPythonGrader",
                        "canonical": "objects/EvalPythonGrader",
                        "label": "EvalPythonGrader"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The object type, which is always `python`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "python"
                            }
                          ],
                          "properties": [
                            {
                              "name": "python",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the grader.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "source",
                          "type": "string",
                          "description": "The source code of the python script.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "pass_threshold",
                          "type": "number",
                          "description": "The threshold for the score.",
                          "meta": []
                        },
                        {
                          "name": "image_tag",
                          "type": "string",
                          "description": "The image tag to use for the python script.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "ScoreModelGrader",
                      "type": "object",
                      "description": "A ScoreModelGrader object that uses a model to assign a score to the input.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/EvalScoreModelGrader",
                        "canonical": "objects/EvalScoreModelGrader",
                        "label": "EvalScoreModelGrader"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The object type, which is always `score_model`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "score_model"
                            }
                          ],
                          "properties": [
                            {
                              "name": "score_model",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the grader.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "model",
                          "type": "string",
                          "description": "The model to use for the evaluation.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "sampling_params",
                          "type": "object",
                          "description": "The sampling parameters for the model.",
                          "meta": []
                        },
                        {
                          "name": "input",
                          "type": "object",
                          "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/EvalItem",
                            "canonical": "objects/EvalItem",
                            "label": "EvalItem"
                          },
                          "properties": [
                            {
                              "name": "role",
                              "type": "$$enum",
                              "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "user",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "assistant",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "system",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "developer",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "content",
                              "type": "$$xor",
                              "description": "Text inputs to the model - can contain template strings.\n",
                              "properties": [
                                {
                                  "name": "Text input",
                                  "type": "string",
                                  "description": "A text input to the model.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "Input text",
                                  "type": "object",
                                  "description": "A text input to the model.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/InputTextContent",
                                    "canonical": "objects/InputTextContent",
                                    "label": "InputTextContent"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the input item. Always `input_text`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "defaults",
                                          "value": "input_text"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "input_text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "input_text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "description": "The text input to the model.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Output text",
                                  "type": "object",
                                  "description": "A text output from the model.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the output text. Always `output_text`.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "output_text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "output_text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "string",
                                      "description": "The text output from the model.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the message input. Always `message`.\n",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "message"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "message",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        },
                        {
                          "name": "pass_threshold",
                          "type": "number",
                          "description": "The threshold for the score.",
                          "meta": []
                        },
                        {
                          "name": "range",
                          "type": "$$array",
                          "description": "The range of the score. Defaults to `[0, 1]`.",
                          "meta": [],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "number",
                            "properties": [],
                            "description": "",
                            "meta": []
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateEvalRequest",
              "canonical": "objects/CreateEvalRequest",
              "label": "CreateEvalRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [Eval](/docs/api-reference/evals/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get an eval",
    "canonical": "evals/get",
    "description": "Get an evaluation by ID.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/evals/{eval_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval\",\n  \"id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"data_source_config\": {\n    \"type\": \"custom\",\n    \"schema\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"item\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"input\": {\n              \"type\": \"string\"\n            },\n            \"ground_truth\": {\n              \"type\": \"string\"\n            }\n          },\n          \"required\": [\n            \"input\",\n            \"ground_truth\"\n          ]\n        }\n      },\n      \"required\": [\n        \"item\"\n      ]\n    }\n  },\n  \"testing_criteria\": [\n    {\n      \"name\": \"String check\",\n      \"id\": \"String check-2eaf2d8d-d649-4335-8148-9535a7ca73c2\",\n      \"type\": \"string_check\",\n      \"input\": \"{{item.input}}\",\n      \"reference\": \"{{item.ground_truth}}\",\n      \"operation\": \"eq\"\n    }\n  ],\n  \"name\": \"External Data Eval\",\n  \"created_at\": 1739314509,\n  \"metadata\": {},\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [Eval](/docs/api-reference/evals/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Update an eval",
    "canonical": "evals/update",
    "description": "Update certain properties of an evaluation.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/evals/{eval_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\": \"Updated Eval\", \"metadata\": {\"description\": \"Updated description\"}}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval\",\n  \"id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"data_source_config\": {\n    \"type\": \"custom\",\n    \"schema\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"item\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"input\": {\n              \"type\": \"string\"\n            },\n            \"ground_truth\": {\n              \"type\": \"string\"\n            }\n          },\n          \"required\": [\n            \"input\",\n            \"ground_truth\"\n          ]\n        }\n      },\n      \"required\": [\n        \"item\"\n      ]\n    }\n  },\n  \"testing_criteria\": [\n    {\n      \"name\": \"String check\",\n      \"id\": \"String check-2eaf2d8d-d649-4335-8148-9535a7ca73c2\",\n      \"type\": \"string_check\",\n      \"input\": \"{{item.input}}\",\n      \"reference\": \"{{item.ground_truth}}\",\n      \"operation\": \"eq\"\n    }\n  ],\n  \"name\": \"Updated Eval\",\n  \"created_at\": 1739314509,\n  \"metadata\": {\"description\": \"Updated description\"},\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to update.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "Rename the evaluation.",
                "meta": []
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ]
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The [Eval](/docs/api-reference/evals/object) object matching the updated version.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete an eval",
    "canonical": "evals/delete",
    "description": "Delete an evaluation.\n",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/evals/{eval_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_abc123 \\\n  -X DELETE \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.deleted\",\n  \"deleted\": true,\n  \"eval_id\": \"eval_abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "A deletion confirmation object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List evals",
    "canonical": "evals/list",
    "description": "List evaluations for a project.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/evals",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals?limit=1 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n      \"object\": \"eval\",\n      \"data_source_config\": {\n        \"type\": \"stored_completions\",\n        \"metadata\": {\n          \"usecase\": \"push_notifications_summarizer\"\n        },\n        \"schema\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"item\": {\n              \"type\": \"object\"\n            },\n            \"sample\": {\n              \"type\": \"object\"\n            }\n          },\n          \"required\": [\n            \"item\",\n            \"sample\"\n          ]\n        }\n      },\n      \"testing_criteria\": [\n        {\n          \"name\": \"Push Notification Summary Grader\",\n          \"id\": \"Push Notification Summary Grader-9b876f24-4762-4be9-aff4-db7a9b31c673\",\n          \"type\": \"label_model\",\n          \"model\": \"o3-mini\",\n          \"input\": [\n            {\n              \"type\": \"message\",\n              \"role\": \"developer\",\n              \"content\": {\n                \"type\": \"input_text\",\n                \"text\": \"\\nLabel the following push notification summary as either correct or incorrect.\\nThe push notification and the summary will be provided below.\\nA good push notificiation summary is concise and snappy.\\nIf it is good, then label it as correct, if not, then incorrect.\\n\"\n              }\n            },\n            {\n              \"type\": \"message\",\n              \"role\": \"user\",\n              \"content\": {\n                \"type\": \"input_text\",\n                \"text\": \"\\nPush notifications: {{item.input}}\\nSummary: {{sample.output_text}}\\n\"\n              }\n            }\n          ],\n          \"passing_labels\": [\n            \"correct\"\n          ],\n          \"labels\": [\n            \"correct\",\n            \"incorrect\"\n          ],\n          \"sampling_params\": null\n        }\n      ],\n      \"name\": \"Push Notification Summary Grader\",\n      \"created_at\": 1739314509,\n      \"metadata\": {\n        \"description\": \"A stored completions eval for push notification summaries\"\n      }\n    }\n  ],\n  \"first_id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"last_id\": \"eval_67aa884cf6688190b58f657d4441c8b7\",\n  \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last eval from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of evals to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order for evals by timestamp. Use `asc` for ascending order or `desc` for descending order.",
            "meta": [
              {
                "name": "defaults",
                "value": "asc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "order_by",
            "type": "$$enum",
            "description": "Evals can be ordered by creation time or last updated time. Use\n`created_at` for creation time or `updated_at` for last updated time.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "created_at"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "created_at",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "updated_at",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [evals](/docs/api-reference/evals/object) matching the specified filters.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get eval runs",
    "canonical": "evals/getRuns",
    "description": "Get a list of runs for an evaluation.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/evals/{eval_id}/runs",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/egroup_67abd54d9b0081909a86353f6fb9317a/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"eval.run\",\n      \"id\": \"evalrun_67e0c7d31560819090d60c0780591042\",\n      \"eval_id\": \"eval_67e0c726d560819083f19a957c4c640b\",\n      \"report_url\": \"https://platform.openai.com/evaluations/eval_67e0c726d560819083f19a957c4c640b\",\n      \"status\": \"completed\",\n      \"model\": \"o3-mini\",\n      \"name\": \"bulk_with_negative_examples_o3-mini\",\n      \"created_at\": 1742784467,\n      \"result_counts\": {\n        \"total\": 1,\n        \"errored\": 0,\n        \"failed\": 0,\n        \"passed\": 1\n      },\n      \"per_model_usage\": [\n        {\n          \"model_name\": \"o3-mini\",\n          \"invocation_count\": 1,\n          \"prompt_tokens\": 563,\n          \"completion_tokens\": 874,\n          \"total_tokens\": 1437,\n          \"cached_tokens\": 0\n        }\n      ],\n      \"per_testing_criteria_results\": [\n        {\n          \"testing_criteria\": \"Push Notification Summary Grader-1808cd0b-eeec-4e0b-a519-337e79f4f5d1\",\n          \"passed\": 1,\n          \"failed\": 0\n        }\n      ],\n      \"data_source\": {\n        \"type\": \"completions\",\n        \"source\": {\n          \"type\": \"file_content\",\n          \"content\": [\n            {\n              \"item\": {\n                \"notifications\": \"\\n- New message from Sarah: \\\"Can you call me later?\\\"\\n- Your package has been delivered!\\n- Flash sale: 20% off electronics for the next 2 hours!\\n\"\n              }\n            }\n          ]\n        },\n        \"input_messages\": {\n          \"type\": \"template\",\n          \"template\": [\n            {\n              \"type\": \"message\",\n              \"role\": \"developer\",\n              \"content\": {\n                \"type\": \"input_text\",\n                \"text\": \"\\n\\n\\n\\nYou are a helpful assistant that takes in an array of push notifications and returns a collapsed summary of them.\\nThe push notification will be provided as follows:\\n<push_notifications>\\n...notificationlist...\\n</push_notifications>\\n\\nYou should return just the summary and nothing else.\\n\\n\\nYou should return a summary that is concise and snappy.\\n\\n\\nHere is an example of a good summary:\\n<push_notifications>\\n- Traffic alert: Accident reported on Main Street.- Package out for delivery: Expected by 5 PM.- New friend suggestion: Connect with Emma.\\n</push_notifications>\\n<summary>\\nTraffic alert, package expected by 5pm, suggestion for new friend (Emily).\\n</summary>\\n\\n\\nHere is an example of a bad summary:\\n<push_notifications>\\n- Traffic alert: Accident reported on Main Street.- Package out for delivery: Expected by 5 PM.- New friend suggestion: Connect with Emma.\\n</push_notifications>\\n<summary>\\nTraffic alert reported on main street. You have a package that will arrive by 5pm, Emily is a new friend suggested for you.\\n</summary>\\n\"\n              }\n            },\n            {\n              \"type\": \"message\",\n              \"role\": \"user\",\n              \"content\": {\n                \"type\": \"input_text\",\n                \"text\": \"<push_notifications>{{item.notifications}}</push_notifications>\"\n              }\n            }\n          ]\n        },\n        \"model\": \"o3-mini\",\n        \"sampling_params\": null\n      },\n      \"error\": null,\n      \"metadata\": {}\n    }\n  ],\n  \"first_id\": \"evalrun_67e0c7d31560819090d60c0780591042\",\n  \"last_id\": \"evalrun_67e0c7d31560819090d60c0780591042\",\n  \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to retrieve runs for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last run from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of runs to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.",
            "meta": [
              {
                "name": "defaults",
                "value": "asc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "Filter runs by status. One of `queued` | `in_progress` | `failed` | `completed` | `canceled`.",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "queued",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "canceled",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [EvalRun](/docs/api-reference/evals/run-object) objects matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get an eval run",
    "canonical": "evals/getRun",
    "description": "Get an evaluation run by ID.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/evals/{eval_id}/runs/{run_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a/runs/evalrun_67abd54d60ec8190832b46859da808f7 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run\",\n  \"id\": \"evalrun_67abd54d60ec8190832b46859da808f7\",\n  \"eval_id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"report_url\": \"https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7\",\n  \"status\": \"queued\",\n  \"model\": \"gpt-4o-mini\",\n  \"name\": \"gpt-4o-mini\",\n  \"created_at\": 1743092069,\n  \"result_counts\": {\n    \"total\": 0,\n    \"errored\": 0,\n    \"failed\": 0,\n    \"passed\": 0\n  },\n  \"per_model_usage\": null,\n  \"per_testing_criteria_results\": null,\n  \"data_source\": {\n    \"type\": \"completions\",\n    \"source\": {\n      \"type\": \"file_content\",\n      \"content\": [\n        {\n          \"item\": {\n            \"input\": \"Tech Company Launches Advanced Artificial Intelligence Platform\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Central Bank Increases Interest Rates Amid Inflation Concerns\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"International Summit Addresses Climate Change Strategies\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Major Retailer Reports Record-Breaking Holiday Sales\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"National Team Qualifies for World Championship Finals\",\n            \"ground_truth\": \"Sports\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Stock Markets Rally After Positive Economic Data Released\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Global Manufacturer Announces Merger with Competitor\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Breakthrough in Renewable Energy Technology Unveiled\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"World Leaders Sign Historic Climate Agreement\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Professional Athlete Sets New Record in Championship Event\",\n            \"ground_truth\": \"Sports\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Financial Institutions Adapt to New Regulatory Requirements\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Tech Conference Showcases Advances in Artificial Intelligence\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Global Markets Respond to Oil Price Fluctuations\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"International Cooperation Strengthened Through New Treaty\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Sports League Announces Revised Schedule for Upcoming Season\",\n            \"ground_truth\": \"Sports\"\n          }\n        }\n      ]\n    },\n    \"input_messages\": {\n      \"type\": \"template\",\n      \"template\": [\n        {\n          \"type\": \"message\",\n          \"role\": \"developer\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\"\n          }\n        },\n        {\n          \"type\": \"message\",\n          \"role\": \"user\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"{{item.input}}\"\n          }\n        }\n      ]\n    },\n    \"model\": \"gpt-4o-mini\",\n    \"sampling_params\": {\n      \"seed\": 42,\n      \"temperature\": 1.0,\n      \"top_p\": 1.0,\n      \"max_completions_tokens\": 2048\n    }\n  },\n  \"error\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to retrieve runs for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [EvalRun](/docs/api-reference/evals/run-object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create eval run",
    "canonical": "evals/createRun",
    "description": "Create a new evaluation run. This is the endpoint that will kick off grading.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/evals/{eval_id}/runs",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_67e579652b548190aaa83ada4b125f47/runs \\\n  -X POST \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"gpt-4o-mini\",\"data_source\":{\"type\":\"completions\",\"input_messages\":{\"type\":\"template\",\"template\":[{\"role\":\"developer\",\"content\":\"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\"} , {\"role\":\"user\",\"content\":\"{{item.input}}\"}]},\"sampling_params\":{\"temperature\":1,\"max_completions_tokens\":2048,\"top_p\":1,\"seed\":42},\"model\":\"gpt-4o-mini\",\"source\":{\"type\":\"file_content\",\"content\":[{\"item\":{\"input\":\"Tech Company Launches Advanced Artificial Intelligence Platform\",\"ground_truth\":\"Technology\"}}]}}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run\",\n  \"id\": \"evalrun_67e57965b480819094274e3a32235e4c\",\n  \"eval_id\": \"eval_67e579652b548190aaa83ada4b125f47\",\n  \"report_url\": \"https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47&run_id=evalrun_67e57965b480819094274e3a32235e4c\",\n  \"status\": \"queued\",\n  \"model\": \"gpt-4o-mini\",\n  \"name\": \"gpt-4o-mini\",\n  \"created_at\": 1743092069,\n  \"result_counts\": {\n    \"total\": 0,\n    \"errored\": 0,\n    \"failed\": 0,\n    \"passed\": 0\n  },\n  \"per_model_usage\": null,\n  \"per_testing_criteria_results\": null,\n  \"data_source\": {\n    \"type\": \"completions\",\n    \"source\": {\n      \"type\": \"file_content\",\n      \"content\": [\n        {\n          \"item\": {\n            \"input\": \"Tech Company Launches Advanced Artificial Intelligence Platform\",\n            \"ground_truth\": \"Technology\"\n          }\n        }\n      ]\n    },\n    \"input_messages\": {\n      \"type\": \"template\",\n      \"template\": [\n        {\n          \"type\": \"message\",\n          \"role\": \"developer\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\"\n          }\n        },\n        {\n          \"type\": \"message\",\n          \"role\": \"user\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"{{item.input}}\"\n          }\n        }\n      ]\n    },\n    \"model\": \"gpt-4o-mini\",\n    \"sampling_params\": {\n      \"seed\": 42,\n      \"temperature\": 1.0,\n      \"top_p\": 1.0,\n      \"max_completions_tokens\": 2048\n    }\n  },\n  \"error\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to create a run for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The name of the run.",
                "meta": []
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "data_source",
                "type": "$$xor",
                "description": "Details about the run's data source.",
                "properties": [
                  {
                    "name": "JsonlRunDataSource",
                    "type": "object",
                    "description": "A JsonlRunDataSource object with that specifies a JSONL file that matches the eval\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/CreateEvalJsonlRunDataSource",
                      "canonical": "objects/CreateEvalJsonlRunDataSource",
                      "label": "CreateEvalJsonlRunDataSource"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of data source. Always `jsonl`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": "jsonl"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "jsonl"
                          }
                        ],
                        "properties": [
                          {
                            "name": "jsonl",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "source",
                        "type": "$$xor",
                        "description": "",
                        "properties": [
                          {
                            "name": "EvalJsonlFileContentSource",
                            "type": "object",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalJsonlFileContentSource",
                              "canonical": "objects/EvalJsonlFileContentSource",
                              "label": "EvalJsonlFileContentSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of jsonl source. Always `file_content`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "file_content"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_content"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_content",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "content",
                                "type": "$$array",
                                "description": "The content of the jsonl file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "object",
                                  "properties": [
                                    {
                                      "name": "item",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "sample",
                                      "type": "object",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          {
                            "name": "EvalJsonlFileIdSource",
                            "type": "object",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalJsonlFileIdSource",
                              "canonical": "objects/EvalJsonlFileIdSource",
                              "label": "EvalJsonlFileIdSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of jsonl source. Always `file_id`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "file_id"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_id"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_id",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The identifier of the file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "CompletionsRunDataSource",
                    "type": "object",
                    "description": "A CompletionsRunDataSource object describing a model sampling configuration.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/CreateEvalCompletionsRunDataSource",
                      "canonical": "objects/CreateEvalCompletionsRunDataSource",
                      "label": "CreateEvalCompletionsRunDataSource"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of run data source. Always `completions`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": "completions"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "completions"
                          }
                        ],
                        "properties": [
                          {
                            "name": "completions",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "input_messages",
                        "type": "$$xor",
                        "description": "",
                        "properties": [
                          {
                            "name": "TemplateInputMessages",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of input messages. Always `template`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "template"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "template",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "template",
                                "type": "$$array",
                                "description": "A list of chat messages forming the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "$$xor",
                                  "properties": [
                                    {
                                      "name": "Input message",
                                      "type": "object",
                                      "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/EasyInputMessage",
                                        "canonical": "objects/EasyInputMessage",
                                        "label": "EasyInputMessage"
                                      },
                                      "properties": [
                                        {
                                          "name": "role",
                                          "type": "$$enum",
                                          "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "user",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "assistant",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "system",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "developer",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "content",
                                          "type": "$$xor",
                                          "description": "Text, image, or audio input to the model, used to generate a response.\nCan also contain previous assistant responses.\n",
                                          "properties": [
                                            {
                                              "name": "Text input",
                                              "type": "string",
                                              "description": "A text input to the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "Input item content list",
                                              "type": "$$array",
                                              "description": "A list of one or many input items to the model, containing different content \ntypes.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [],
                                              "symbolDef": {
                                                "id": "#/components/schemas/InputMessageContentList",
                                                "canonical": "objects/InputMessageContentList",
                                                "label": "InputMessageContentList"
                                              },
                                              "ofProperty": {
                                                "name": "",
                                                "type": "$$xor",
                                                "properties": [
                                                  {
                                                    "name": "Input text",
                                                    "type": "object",
                                                    "description": "A text input to the model.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/InputTextContent",
                                                      "canonical": "objects/InputTextContent",
                                                      "label": "InputTextContent"
                                                    },
                                                    "properties": [
                                                      {
                                                        "name": "type",
                                                        "type": "$$enum",
                                                        "description": "The type of the input item. Always `input_text`.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "defaults",
                                                            "value": "input_text"
                                                          },
                                                          {
                                                            "name": "enum-type",
                                                            "value": "string"
                                                          },
                                                          {
                                                            "name": "const",
                                                            "value": "input_text"
                                                          }
                                                        ],
                                                        "properties": [
                                                          {
                                                            "name": "input_text",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "description": "",
                                                          "type": "string"
                                                        }
                                                      },
                                                      {
                                                        "name": "text",
                                                        "type": "string",
                                                        "description": "The text input to the model.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "Input image",
                                                    "type": "object",
                                                    "description": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/InputImageContent",
                                                      "canonical": "objects/InputImageContent",
                                                      "label": "InputImageContent"
                                                    },
                                                    "properties": [
                                                      {
                                                        "name": "type",
                                                        "type": "$$enum",
                                                        "description": "The type of the input item. Always `input_image`.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "defaults",
                                                            "value": "input_image"
                                                          },
                                                          {
                                                            "name": "enum-type",
                                                            "value": "string"
                                                          },
                                                          {
                                                            "name": "const",
                                                            "value": "input_image"
                                                          }
                                                        ],
                                                        "properties": [
                                                          {
                                                            "name": "input_image",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "description": "",
                                                          "type": "string"
                                                        }
                                                      },
                                                      {
                                                        "name": "image_url",
                                                        "type": "$$union",
                                                        "description": "",
                                                        "properties": [
                                                          {
                                                            "name": "image_url",
                                                            "type": "string",
                                                            "description": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.",
                                                            "meta": []
                                                          },
                                                          {
                                                            "name": "image_url",
                                                            "type": "null",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_id",
                                                        "type": "$$union",
                                                        "description": "",
                                                        "properties": [
                                                          {
                                                            "name": "file_id",
                                                            "type": "string",
                                                            "description": "The ID of the file to be sent to the model.",
                                                            "meta": []
                                                          },
                                                          {
                                                            "name": "file_id",
                                                            "type": "null",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "detail",
                                                        "type": "$$enum",
                                                        "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "enum-type",
                                                            "value": "string"
                                                          }
                                                        ],
                                                        "properties": [
                                                          {
                                                            "name": "low",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          },
                                                          {
                                                            "name": "high",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          },
                                                          {
                                                            "name": "auto",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "description": "",
                                                          "type": "string"
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "Input file",
                                                    "type": "object",
                                                    "description": "A file input to the model.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/InputFileContent",
                                                      "canonical": "objects/InputFileContent",
                                                      "label": "InputFileContent"
                                                    },
                                                    "properties": [
                                                      {
                                                        "name": "type",
                                                        "type": "$$enum",
                                                        "description": "The type of the input item. Always `input_file`.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "defaults",
                                                            "value": "input_file"
                                                          },
                                                          {
                                                            "name": "enum-type",
                                                            "value": "string"
                                                          },
                                                          {
                                                            "name": "const",
                                                            "value": "input_file"
                                                          }
                                                        ],
                                                        "properties": [
                                                          {
                                                            "name": "input_file",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "description": "",
                                                          "type": "string"
                                                        }
                                                      },
                                                      {
                                                        "name": "file_id",
                                                        "type": "$$union",
                                                        "description": "",
                                                        "properties": [
                                                          {
                                                            "name": "file_id",
                                                            "type": "string",
                                                            "description": "The ID of the file to be sent to the model.",
                                                            "meta": []
                                                          },
                                                          {
                                                            "name": "file_id",
                                                            "type": "null",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "filename",
                                                        "type": "string",
                                                        "description": "The name of the file to be sent to the model.",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "file_data",
                                                        "type": "string",
                                                        "description": "The content of the file to be sent to the model.\n",
                                                        "meta": []
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "description": "",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/InputContent",
                                                  "canonical": "objects/InputContent",
                                                  "label": "InputContent"
                                                }
                                              }
                                            }
                                          ],
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the message input. Always `message`.\n",
                                          "meta": [
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "message"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "message",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Eval message object",
                                      "type": "object",
                                      "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/EvalItem",
                                        "canonical": "objects/EvalItem",
                                        "label": "EvalItem"
                                      },
                                      "properties": [
                                        {
                                          "name": "role",
                                          "type": "$$enum",
                                          "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "user",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "assistant",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "system",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "developer",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "content",
                                          "type": "$$xor",
                                          "description": "Text inputs to the model - can contain template strings.\n",
                                          "properties": [
                                            {
                                              "name": "Text input",
                                              "type": "string",
                                              "description": "A text input to the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "Input text",
                                              "type": "object",
                                              "description": "A text input to the model.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "symbolDef": {
                                                "id": "#/components/schemas/InputTextContent",
                                                "canonical": "objects/InputTextContent",
                                                "label": "InputTextContent"
                                              },
                                              "properties": [
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of the input item. Always `input_text`.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "defaults",
                                                      "value": "input_text"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "input_text"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "input_text",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "text",
                                                  "type": "string",
                                                  "description": "The text input to the model.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "name": "Output text",
                                              "type": "object",
                                              "description": "A text output from the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of the output text. Always `output_text`.\n",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "output_text"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "output_text",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "text",
                                                  "type": "string",
                                                  "description": "The text output from the model.\n",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ],
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the message input. Always `message`.\n",
                                          "meta": [
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "message"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "message",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          {
                            "name": "ItemReferenceInputMessages",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of input messages. Always `item_reference`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "item_reference"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "item_reference",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "A reference to a variable in the \"item\" namespace. Ie, \"item.name\"",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "meta": []
                      },
                      {
                        "name": "sampling_params",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "A higher temperature increases randomness in the outputs.",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": 1
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of tokens in the generated output.",
                            "meta": []
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": 1
                              }
                            ]
                          },
                          {
                            "name": "seed",
                            "type": "integer",
                            "description": "A seed value to initialize the randomness, during sampling.",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": 42
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "model",
                        "type": "string",
                        "description": "The name of the model to use for generating completions (e.g. \"o3-mini\").",
                        "meta": []
                      },
                      {
                        "name": "source",
                        "type": "$$xor",
                        "description": "",
                        "properties": [
                          {
                            "name": "EvalJsonlFileContentSource",
                            "type": "object",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalJsonlFileContentSource",
                              "canonical": "objects/EvalJsonlFileContentSource",
                              "label": "EvalJsonlFileContentSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of jsonl source. Always `file_content`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "file_content"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_content"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_content",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "content",
                                "type": "$$array",
                                "description": "The content of the jsonl file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "object",
                                  "properties": [
                                    {
                                      "name": "item",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "sample",
                                      "type": "object",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          {
                            "name": "EvalJsonlFileIdSource",
                            "type": "object",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalJsonlFileIdSource",
                              "canonical": "objects/EvalJsonlFileIdSource",
                              "label": "EvalJsonlFileIdSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of jsonl source. Always `file_id`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "file_id"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_id"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_id",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The identifier of the file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "StoredCompletionsRunDataSource",
                            "type": "object",
                            "description": "A StoredCompletionsRunDataSource configuration describing a set of filters\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalStoredCompletionsSource",
                              "canonical": "objects/EvalStoredCompletionsSource",
                              "label": "EvalStoredCompletionsSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of source. Always `stored_completions`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "stored_completions"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "stored_completions"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "stored_completions",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "metadata",
                                "type": "object",
                                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/Metadata",
                                  "canonical": "objects/Metadata",
                                  "label": "Metadata"
                                }
                              },
                              {
                                "name": "model",
                                "type": "string",
                                "description": "An optional model to filter by (e.g., 'gpt-4o').",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "created_after",
                                "type": "integer",
                                "description": "An optional Unix timestamp to filter items created after this time.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "created_before",
                                "type": "integer",
                                "description": "An optional Unix timestamp to filter items created before this time.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "limit",
                                "type": "integer",
                                "description": "An optional maximum number of items to return.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "ResponsesRunDataSource",
                    "type": "object",
                    "description": "A ResponsesRunDataSource object describing a model sampling configuration.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/CreateEvalResponsesRunDataSource",
                      "canonical": "objects/CreateEvalResponsesRunDataSource",
                      "label": "CreateEvalResponsesRunDataSource"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of run data source. Always `completions`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": "completions"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "completions"
                          }
                        ],
                        "properties": [
                          {
                            "name": "completions",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "input_messages",
                        "type": "$$xor",
                        "description": "",
                        "properties": [
                          {
                            "name": "input_messages",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of input messages. Always `template`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "template"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "template",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "template",
                                "type": "$$array",
                                "description": "A list of chat messages forming the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "$$xor",
                                  "properties": [
                                    {
                                      "name": "ChatMessage",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "role",
                                          "type": "string",
                                          "description": "The role of the message (e.g. \"system\", \"assistant\", \"user\").",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "content",
                                          "type": "string",
                                          "description": "The content of the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Eval message object",
                                      "type": "object",
                                      "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/EvalItem",
                                        "canonical": "objects/EvalItem",
                                        "label": "EvalItem"
                                      },
                                      "properties": [
                                        {
                                          "name": "role",
                                          "type": "$$enum",
                                          "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "user",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "assistant",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "system",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "developer",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "content",
                                          "type": "$$xor",
                                          "description": "Text inputs to the model - can contain template strings.\n",
                                          "properties": [
                                            {
                                              "name": "Text input",
                                              "type": "string",
                                              "description": "A text input to the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "Input text",
                                              "type": "object",
                                              "description": "A text input to the model.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "symbolDef": {
                                                "id": "#/components/schemas/InputTextContent",
                                                "canonical": "objects/InputTextContent",
                                                "label": "InputTextContent"
                                              },
                                              "properties": [
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of the input item. Always `input_text`.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "defaults",
                                                      "value": "input_text"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "input_text"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "input_text",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "text",
                                                  "type": "string",
                                                  "description": "The text input to the model.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "name": "Output text",
                                              "type": "object",
                                              "description": "A text output from the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of the output text. Always `output_text`.\n",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "output_text"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "output_text",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "text",
                                                  "type": "string",
                                                  "description": "The text output from the model.\n",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ],
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of the message input. Always `message`.\n",
                                          "meta": [
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "message"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "message",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          {
                            "name": "input_messages",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of input messages. Always `item_reference`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "item_reference"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "item_reference",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "A reference to a variable in the \"item\" namespace. Ie, \"item.name\"",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "meta": []
                      },
                      {
                        "name": "sampling_params",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "A higher temperature increases randomness in the outputs.",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": 1
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of tokens in the generated output.",
                            "meta": []
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": 1
                              }
                            ]
                          },
                          {
                            "name": "seed",
                            "type": "integer",
                            "description": "A seed value to initialize the randomness, during sampling.",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": 42
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "model",
                        "type": "string",
                        "description": "The name of the model to use for generating completions (e.g. \"o3-mini\").",
                        "meta": []
                      },
                      {
                        "name": "source",
                        "type": "$$xor",
                        "description": "",
                        "properties": [
                          {
                            "name": "EvalJsonlFileContentSource",
                            "type": "object",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalJsonlFileContentSource",
                              "canonical": "objects/EvalJsonlFileContentSource",
                              "label": "EvalJsonlFileContentSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of jsonl source. Always `file_content`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "file_content"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_content"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_content",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "content",
                                "type": "$$array",
                                "description": "The content of the jsonl file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "object",
                                  "properties": [
                                    {
                                      "name": "item",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "sample",
                                      "type": "object",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          {
                            "name": "EvalJsonlFileIdSource",
                            "type": "object",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalJsonlFileIdSource",
                              "canonical": "objects/EvalJsonlFileIdSource",
                              "label": "EvalJsonlFileIdSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of jsonl source. Always `file_id`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "defaults",
                                    "value": "file_id"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_id"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_id",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "id",
                                "type": "string",
                                "description": "The identifier of the file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "EvalResponsesSource",
                            "type": "object",
                            "description": "A EvalResponsesSource object describing a run data source configuration.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/EvalResponsesSource",
                              "canonical": "objects/EvalResponsesSource",
                              "label": "EvalResponsesSource"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of run data source. Always `responses`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "responses"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "responses",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "metadata",
                                "type": "object",
                                "description": "Metadata filter for the responses. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "model",
                                "type": "string",
                                "description": "The name of the model to find responses for. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "instructions_search",
                                "type": "string",
                                "description": "Optional search string for instructions. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "created_after",
                                "type": "integer",
                                "description": "Only include items created after this timestamp (inclusive). This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 0
                                  }
                                ]
                              },
                              {
                                "name": "created_before",
                                "type": "integer",
                                "description": "Only include items created before this timestamp (inclusive). This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 0
                                  }
                                ]
                              },
                              {
                                "name": "has_tool_calls",
                                "type": "boolean",
                                "description": "Whether the response has tool calls. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "reasoning_effort",
                                "type": "$$enum",
                                "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                                "meta": [
                                  {
                                    "name": "defaults",
                                    "value": "medium"
                                  },
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "low",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "medium",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "high",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "temperature",
                                "type": "number",
                                "description": "Sampling temperature. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "top_p",
                                "type": "number",
                                "description": "Nucleus sampling parameter. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "users",
                                "type": "$$array",
                                "description": "List of user identifiers. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "string",
                                  "properties": [],
                                  "description": "",
                                  "meta": []
                                }
                              },
                              {
                                "name": "allow_parallel_tool_calls",
                                "type": "boolean",
                                "description": "Whether to allow parallel tool calls. This is a query parameter used to select responses.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateEvalRunRequest",
              "canonical": "objects/CreateEvalRunRequest",
              "label": "CreateEvalRunRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The [EvalRun](/docs/api-reference/evals/run-object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Cancel eval run",
    "canonical": "evals/cancelRun",
    "description": "Cancel an ongoing evaluation run.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/evals/{eval_id}/runs/{run_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a/runs/evalrun_67abd54d60ec8190832b46859da808f7/cancel \\\n  -X POST \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run\",\n  \"id\": \"evalrun_67abd54d60ec8190832b46859da808f7\",\n  \"eval_id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"report_url\": \"https://platform.openai.com/evaluations/eval_67abd54d9b0081909a86353f6fb9317a?run_id=evalrun_67abd54d60ec8190832b46859da808f7\",\n  \"status\": \"canceled\",\n  \"model\": \"gpt-4o-mini\",\n  \"name\": \"gpt-4o-mini\",\n  \"created_at\": 1743092069,\n  \"result_counts\": {\n    \"total\": 0,\n    \"errored\": 0,\n    \"failed\": 0,\n    \"passed\": 0\n  },\n  \"per_model_usage\": null,\n  \"per_testing_criteria_results\": null,\n  \"data_source\": {\n    \"type\": \"completions\",\n    \"source\": {\n      \"type\": \"file_content\",\n      \"content\": [\n        {\n          \"item\": {\n            \"input\": \"Tech Company Launches Advanced Artificial Intelligence Platform\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Central Bank Increases Interest Rates Amid Inflation Concerns\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"International Summit Addresses Climate Change Strategies\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Major Retailer Reports Record-Breaking Holiday Sales\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"National Team Qualifies for World Championship Finals\",\n            \"ground_truth\": \"Sports\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Stock Markets Rally After Positive Economic Data Released\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Global Manufacturer Announces Merger with Competitor\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Breakthrough in Renewable Energy Technology Unveiled\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"World Leaders Sign Historic Climate Agreement\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Professional Athlete Sets New Record in Championship Event\",\n            \"ground_truth\": \"Sports\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Financial Institutions Adapt to New Regulatory Requirements\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Tech Conference Showcases Advances in Artificial Intelligence\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Global Markets Respond to Oil Price Fluctuations\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"International Cooperation Strengthened Through New Treaty\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Sports League Announces Revised Schedule for Upcoming Season\",\n            \"ground_truth\": \"Sports\"\n          }\n        }\n      ]\n    },\n    \"input_messages\": {\n      \"type\": \"template\",\n      \"template\": [\n        {\n          \"type\": \"message\",\n          \"role\": \"developer\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\"\n          }\n        },\n        {\n          \"type\": \"message\",\n          \"role\": \"user\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"{{item.input}}\"\n          }\n        }\n      ]\n    },\n    \"model\": \"gpt-4o-mini\",\n    \"sampling_params\": {\n      \"seed\": 42,\n      \"temperature\": 1.0,\n      \"top_p\": 1.0,\n      \"max_completions_tokens\": 2048\n    }\n  },\n  \"error\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation whose run you want to cancel.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to cancel.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The updated [EvalRun](/docs/api-reference/evals/run-object) object reflecting that the run is canceled.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete eval run",
    "canonical": "evals/deleteRun",
    "description": "Delete an eval run.\n",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/evals/{eval_id}/runs/{run_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_123abc/runs/evalrun_abc456 \\\n  -X DELETE \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run.deleted\",\n  \"deleted\": true,\n  \"run_id\": \"evalrun_abc456\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to delete the run from.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "An object containing the status of the delete operation.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get an output item of an eval run",
    "canonical": "evals/getRunOutputItem",
    "description": "Get an evaluation run output item by ID.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a/runs/evalrun_67abd54d60ec8190832b46859da808f7/output_items/outputitem_67abd55eb6548190bb580745d5644a33 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run.output_item\",\n  \"id\": \"outputitem_67e5796c28e081909917bf79f6e6214d\",\n  \"created_at\": 1743092076,\n  \"run_id\": \"evalrun_67abd54d60ec8190832b46859da808f7\",\n  \"eval_id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"status\": \"pass\",\n  \"datasource_item_id\": 5,\n  \"datasource_item\": {\n    \"input\": \"Stock Markets Rally After Positive Economic Data Released\",\n    \"ground_truth\": \"Markets\"\n  },\n  \"results\": [\n    {\n      \"name\": \"String check-a2486074-d803-4445-b431-ad2262e85d47\",\n      \"sample\": null,\n      \"passed\": true,\n      \"score\": 1.0\n    }\n  ],\n  \"sample\": {\n    \"input\": [\n      {\n        \"role\": \"developer\",\n        \"content\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\",\n        \"tool_call_id\": null,\n        \"tool_calls\": null,\n        \"function_call\": null\n      },\n      {\n        \"role\": \"user\",\n        \"content\": \"Stock Markets Rally After Positive Economic Data Released\",\n        \"tool_call_id\": null,\n        \"tool_calls\": null,\n        \"function_call\": null\n      }\n    ],\n    \"output\": [\n      {\n        \"role\": \"assistant\",\n        \"content\": \"Markets\",\n        \"tool_call_id\": null,\n        \"tool_calls\": null,\n        \"function_call\": null\n      }\n    ],\n    \"finish_reason\": \"stop\",\n    \"model\": \"gpt-4o-mini-2024-07-18\",\n    \"usage\": {\n      \"total_tokens\": 325,\n      \"completion_tokens\": 2,\n      \"prompt_tokens\": 323,\n      \"cached_tokens\": 0\n    },\n    \"error\": null,\n    \"temperature\": 1.0,\n    \"max_completion_tokens\": 2048,\n    \"top_p\": 1.0,\n    \"seed\": 42\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to retrieve runs for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "output_item_id",
            "type": "string",
            "description": "The ID of the output item to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [EvalRunOutputItem](/docs/api-reference/evals/run-output-item-object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get eval run output items",
    "canonical": "evals/getRunOutputItems",
    "description": "Get a list of output items for an evaluation run.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/evals/{eval_id}/runs/{run_id}/output_items",
      "group": [
        "Platform APIs",
        "Evals"
      ],
      "fullPath": "https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}/output_items",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/evals/egroup_67abd54d9b0081909a86353f6fb9317a/runs/erun_67abd54d60ec8190832b46859da808f7/output_items \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"eval.run.output_item\",\n      \"id\": \"outputitem_67e5796c28e081909917bf79f6e6214d\",\n      \"created_at\": 1743092076,\n      \"run_id\": \"evalrun_67abd54d60ec8190832b46859da808f7\",\n      \"eval_id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n      \"status\": \"pass\",\n      \"datasource_item_id\": 5,\n      \"datasource_item\": {\n        \"input\": \"Stock Markets Rally After Positive Economic Data Released\",\n        \"ground_truth\": \"Markets\"\n      },\n      \"results\": [\n        {\n          \"name\": \"String check-a2486074-d803-4445-b431-ad2262e85d47\",\n          \"sample\": null,\n          \"passed\": true,\n          \"score\": 1.0\n        }\n      ],\n      \"sample\": {\n        \"input\": [\n          {\n            \"role\": \"developer\",\n            \"content\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\",\n            \"tool_call_id\": null,\n            \"tool_calls\": null,\n            \"function_call\": null\n          },\n          {\n            \"role\": \"user\",\n            \"content\": \"Stock Markets Rally After Positive Economic Data Released\",\n            \"tool_call_id\": null,\n            \"tool_calls\": null,\n            \"function_call\": null\n          }\n        ],\n        \"output\": [\n          {\n            \"role\": \"assistant\",\n            \"content\": \"Markets\",\n            \"tool_call_id\": null,\n            \"tool_calls\": null,\n            \"function_call\": null\n          }\n        ],\n        \"finish_reason\": \"stop\",\n        \"model\": \"gpt-4o-mini-2024-07-18\",\n        \"usage\": {\n          \"total_tokens\": 325,\n          \"completion_tokens\": 2,\n          \"prompt_tokens\": 323,\n          \"cached_tokens\": 0\n        },\n        \"error\": null,\n        \"temperature\": 1.0,\n        \"max_completion_tokens\": 2048,\n        \"top_p\": 1.0,\n        \"seed\": 42\n      }\n    }\n  ],\n  \"first_id\": \"outputitem_67e5796c28e081909917bf79f6e6214d\",\n  \"last_id\": \"outputitem_67e5796c28e081909917bf79f6e6214d\",\n  \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "eval_id",
            "type": "string",
            "description": "The ID of the evaluation to retrieve runs for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to retrieve output items for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last output item from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of output items to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "Filter output items by status. Use `failed` to filter by failed output\nitems or `pass` to filter by passed output items.\n",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "fail",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "pass",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order for output items by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.",
            "meta": [
              {
                "name": "defaults",
                "value": "asc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [EvalRunOutputItem](/docs/api-reference/evals/run-output-item-object) objects matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "The eval object",
    "description": "An Eval object with a data source config and testing criteria.\nAn Eval represents a task to be done for your LLM integration.\nLike:\n - Improve the quality of my chatbot\n - See how well my chatbot handles customer support\n - Check if o3-mini is better at my usecase than gpt-4o\n",
    "canonical": "evals/object",
    "definitions": [
      {
        "title": "Eval",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": "eval"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "eval"
              }
            ],
            "properties": [
              {
                "name": "eval",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "Unique identifier for the evaluation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the evaluation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "Chatbot effectiveness Evaluation"
              }
            ]
          },
          {
            "name": "data_source_config",
            "type": "$$xor",
            "description": "Configuration of data sources used in runs of the evaluation.",
            "properties": [
              {
                "name": "CustomDataSourceConfig",
                "type": "object",
                "description": "A CustomDataSourceConfig which specifies the schema of your `item` and optionally `sample` namespaces.\nThe response schema defines the shape of the data that will be:\n- Used to define your testing criteria and\n- What data is required when creating a run\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/EvalCustomDataSourceConfig",
                  "canonical": "objects/EvalCustomDataSourceConfig",
                  "label": "EvalCustomDataSourceConfig"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of data source. Always `custom`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "custom"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "custom"
                      }
                    ],
                    "properties": [
                      {
                        "name": "custom",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "schema",
                    "type": "object",
                    "description": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"item\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"label\": {\"type\": \"string\"},\n      },\n      \"required\": [\"label\"]\n    }\n  },\n  \"required\": [\"item\"]\n}\n"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "StoredCompletionsDataSourceConfig",
                "type": "object",
                "description": "A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions query.\nThis is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc.\nThe schema returned by this data source config is used to defined what variables are available in your evals.\n`item` and `sample` are both defined when using this data source config.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/EvalStoredCompletionsDataSourceConfig",
                  "canonical": "objects/EvalStoredCompletionsDataSourceConfig",
                  "label": "EvalStoredCompletionsDataSourceConfig"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of data source. Always `stored_completions`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "stored_completions"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "stored_completions"
                      }
                    ],
                    "properties": [
                      {
                        "name": "stored_completions",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "metadata",
                    "type": "object",
                    "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/Metadata",
                      "canonical": "objects/Metadata",
                      "label": "Metadata"
                    }
                  },
                  {
                    "name": "schema",
                    "type": "object",
                    "description": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "testing_criteria",
            "type": "$$array",
            "description": "A list of testing criteria.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": "eval"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "LabelModelGrader",
                  "type": "object",
                  "description": "A LabelModelGrader object which uses a model to assign labels to each item\nin the evaluation.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/EvalLabelModelGrader",
                    "canonical": "objects/EvalLabelModelGrader",
                    "label": "EvalLabelModelGrader"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The object type, which is always `label_model`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "label_model"
                        }
                      ],
                      "properties": [
                        {
                          "name": "label_model",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the grader.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "model",
                      "type": "string",
                      "description": "The model to use for the evaluation. Must support structured outputs.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "input",
                      "type": "$$array",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "user",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "system",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "developer",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$xor",
                            "description": "Text inputs to the model - can contain template strings.\n",
                            "properties": [
                              {
                                "name": "Text input",
                                "type": "string",
                                "description": "A text input to the model.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "Input text",
                                "type": "object",
                                "description": "A text input to the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/InputTextContent",
                                  "canonical": "objects/InputTextContent",
                                  "label": "InputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the input item. Always `input_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "input_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "input_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "input_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text input to the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the message input. Always `message`.\n",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "message"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ],
                        "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalItem",
                          "canonical": "objects/EvalItem",
                          "label": "EvalItem"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/EvalItem",
                        "canonical": "objects/EvalItem",
                        "label": "EvalItem"
                      }
                    },
                    {
                      "name": "labels",
                      "type": "$$array",
                      "description": "The labels to assign to each item in the evaluation.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "string",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    },
                    {
                      "name": "passing_labels",
                      "type": "$$array",
                      "description": "The labels that indicate a passing result. Must be a subset of labels.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "string",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "name": "StringCheckGrader",
                  "type": "object",
                  "description": "A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/EvalStringCheckGrader",
                    "canonical": "objects/EvalStringCheckGrader",
                    "label": "EvalStringCheckGrader"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The object type, which is always `string_check`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "string_check"
                        }
                      ],
                      "properties": [
                        {
                          "name": "string_check",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the grader.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "input",
                      "type": "string",
                      "description": "The input text. This may include template strings.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "reference",
                      "type": "string",
                      "description": "The reference text. This may include template strings.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "operation",
                      "type": "$$enum",
                      "description": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "eq",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "ne",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "like",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "ilike",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "TextSimilarityGrader",
                  "type": "object",
                  "description": "A TextSimilarityGrader object which grades text based on similarity metrics.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/EvalTextSimilarityGrader",
                    "canonical": "objects/EvalTextSimilarityGrader",
                    "label": "EvalTextSimilarityGrader"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of grader.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "defaults",
                          "value": "text_similarity"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "text_similarity"
                        }
                      ],
                      "properties": [
                        {
                          "name": "text_similarity",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the grader.",
                      "meta": []
                    },
                    {
                      "name": "input",
                      "type": "string",
                      "description": "The text being graded.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "reference",
                      "type": "string",
                      "description": "The text being graded against.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "pass_threshold",
                      "type": "number",
                      "description": "A float score where a value greater than or equal indicates a passing grade.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "evaluation_metric",
                      "type": "$$enum",
                      "description": "The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "fuzzy_match",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "bleu",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "gleu",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "meteor",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "rouge_1",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "rouge_2",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "rouge_3",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "rouge_4",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "rouge_5",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "rouge_l",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "PythonGrader",
                  "type": "object",
                  "description": "A PythonGrader object that runs a python script on the input.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/EvalPythonGrader",
                    "canonical": "objects/EvalPythonGrader",
                    "label": "EvalPythonGrader"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The object type, which is always `python`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "python"
                        }
                      ],
                      "properties": [
                        {
                          "name": "python",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the grader.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "source",
                      "type": "string",
                      "description": "The source code of the python script.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "pass_threshold",
                      "type": "number",
                      "description": "The threshold for the score.",
                      "meta": []
                    },
                    {
                      "name": "image_tag",
                      "type": "string",
                      "description": "The image tag to use for the python script.",
                      "meta": []
                    }
                  ]
                },
                {
                  "name": "ScoreModelGrader",
                  "type": "object",
                  "description": "A ScoreModelGrader object that uses a model to assign a score to the input.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/EvalScoreModelGrader",
                    "canonical": "objects/EvalScoreModelGrader",
                    "label": "EvalScoreModelGrader"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The object type, which is always `score_model`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "score_model"
                        }
                      ],
                      "properties": [
                        {
                          "name": "score_model",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the grader.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "model",
                      "type": "string",
                      "description": "The model to use for the evaluation.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "sampling_params",
                      "type": "object",
                      "description": "The sampling parameters for the model.",
                      "meta": []
                    },
                    {
                      "name": "input",
                      "type": "$$array",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "user",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "system",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "developer",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$xor",
                            "description": "Text inputs to the model - can contain template strings.\n",
                            "properties": [
                              {
                                "name": "Text input",
                                "type": "string",
                                "description": "A text input to the model.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "Input text",
                                "type": "object",
                                "description": "A text input to the model.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/InputTextContent",
                                  "canonical": "objects/InputTextContent",
                                  "label": "InputTextContent"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the input item. Always `input_text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "defaults",
                                        "value": "input_text"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "input_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "input_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text input to the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Output text",
                                "type": "object",
                                "description": "A text output from the model.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the output text. Always `output_text`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "output_text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "output_text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text output from the model.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the message input. Always `message`.\n",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "message"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ],
                        "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalItem",
                          "canonical": "objects/EvalItem",
                          "label": "EvalItem"
                        }
                      },
                      "symbolDef": {
                        "id": "#/components/schemas/EvalItem",
                        "canonical": "objects/EvalItem",
                        "label": "EvalItem"
                      }
                    },
                    {
                      "name": "pass_threshold",
                      "type": "number",
                      "description": "The threshold for the score.",
                      "meta": []
                    },
                    {
                      "name": "range",
                      "type": "$$array",
                      "description": "The range of the score. Defaults to `[0, 1]`.",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "number",
                        "properties": [],
                        "description": "",
                        "meta": []
                      }
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the eval was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Eval",
          "canonical": "objects/Eval",
          "label": "eval"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval\",\n  \"id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"data_source_config\": {\n    \"type\": \"custom\",\n    \"item_schema\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"label\": {\"type\": \"string\"},\n      },\n      \"required\": [\"label\"]\n    },\n    \"include_sample_schema\": true\n  },\n  \"testing_criteria\": [\n    {\n      \"name\": \"My string check grader\",\n      \"type\": \"string_check\",\n      \"input\": \"{{sample.output_text}}\",\n      \"reference\": \"{{item.label}}\",\n      \"operation\": \"eq\",\n    }\n  ],\n  \"name\": \"External Data Eval\",\n  \"created_at\": 1739314509,\n  \"metadata\": {\n    \"test\": \"synthetics\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Eval",
      "group": [
        "Platform APIs",
        "Evals"
      ]
    }
  },
  {
    "title": "The eval run object",
    "description": "A schema representing an evaluation run.\n",
    "canonical": "evals/run-object",
    "definitions": [
      {
        "title": "EvalRun",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The type of the object. Always \"eval.run\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": "eval.run"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "eval.run"
              }
            ],
            "properties": [
              {
                "name": "eval.run",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "Unique identifier for the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "eval_id",
            "type": "string",
            "description": "The identifier of the associated evaluation.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "string",
            "description": "The status of the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model that is evaluated, if applicable.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "Unix timestamp (in seconds) when the evaluation run was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "report_url",
            "type": "string",
            "description": "The URL to the rendered evaluation run report on the UI dashboard.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "result_counts",
            "type": "object",
            "description": "Counters summarizing the outcomes of the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "total",
                "type": "integer",
                "description": "Total number of executed output items.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "errored",
                "type": "integer",
                "description": "Number of output items that resulted in an error.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "failed",
                "type": "integer",
                "description": "Number of output items that failed to pass the evaluation.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "passed",
                "type": "integer",
                "description": "Number of output items that passed the evaluation.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "per_model_usage",
            "type": "$$array",
            "description": "Usage statistics for each model during the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "model_name",
                  "type": "string",
                  "description": "The name of the model.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "invocation_count",
                  "type": "integer",
                  "description": "The number of invocations.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "prompt_tokens",
                  "type": "integer",
                  "description": "The number of prompt tokens used.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "completion_tokens",
                  "type": "integer",
                  "description": "The number of completion tokens generated.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "total_tokens",
                  "type": "integer",
                  "description": "The total number of tokens used.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "cached_tokens",
                  "type": "integer",
                  "description": "The number of tokens retrieved from cache.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "per_testing_criteria_results",
            "type": "$$array",
            "description": "Results per testing criteria applied during the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "testing_criteria",
                  "type": "string",
                  "description": "A description of the testing criteria.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "passed",
                  "type": "integer",
                  "description": "Number of tests passed for this criteria.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "failed",
                  "type": "integer",
                  "description": "Number of tests failed for this criteria.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "data_source",
            "type": "$$xor",
            "description": "Information about the run's data source.",
            "properties": [
              {
                "name": "JsonlRunDataSource",
                "type": "object",
                "description": "A JsonlRunDataSource object with that specifies a JSONL file that matches the eval\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/CreateEvalJsonlRunDataSource",
                  "canonical": "objects/CreateEvalJsonlRunDataSource",
                  "label": "CreateEvalJsonlRunDataSource"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of data source. Always `jsonl`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "jsonl"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "jsonl"
                      }
                    ],
                    "properties": [
                      {
                        "name": "jsonl",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "source",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "EvalJsonlFileContentSource",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalJsonlFileContentSource",
                          "canonical": "objects/EvalJsonlFileContentSource",
                          "label": "EvalJsonlFileContentSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of jsonl source. Always `file_content`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "file_content"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_content"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_content",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the jsonl file.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "item",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "sample",
                                  "type": "object",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "EvalJsonlFileIdSource",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalJsonlFileIdSource",
                          "canonical": "objects/EvalJsonlFileIdSource",
                          "label": "EvalJsonlFileIdSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of jsonl source. Always `file_id`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "file_id"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_id"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the file.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "CompletionsRunDataSource",
                "type": "object",
                "description": "A CompletionsRunDataSource object describing a model sampling configuration.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/CreateEvalCompletionsRunDataSource",
                  "canonical": "objects/CreateEvalCompletionsRunDataSource",
                  "label": "CreateEvalCompletionsRunDataSource"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of run data source. Always `completions`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "completions"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "completions"
                      }
                    ],
                    "properties": [
                      {
                        "name": "completions",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "input_messages",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "TemplateInputMessages",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of input messages. Always `template`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "template"
                              }
                            ],
                            "properties": [
                              {
                                "name": "template",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "template",
                            "type": "$$array",
                            "description": "A list of chat messages forming the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Input message",
                                  "type": "object",
                                  "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/EasyInputMessage",
                                    "canonical": "objects/EasyInputMessage",
                                    "label": "EasyInputMessage"
                                  },
                                  "properties": [
                                    {
                                      "name": "role",
                                      "type": "$$enum",
                                      "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "user",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "assistant",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "system",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "developer",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "content",
                                      "type": "$$xor",
                                      "description": "Text, image, or audio input to the model, used to generate a response.\nCan also contain previous assistant responses.\n",
                                      "properties": [
                                        {
                                          "name": "Text input",
                                          "type": "string",
                                          "description": "A text input to the model.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Input item content list",
                                          "type": "$$array",
                                          "description": "A list of one or many input items to the model, containing different content \ntypes.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/InputMessageContentList",
                                            "canonical": "objects/InputMessageContentList",
                                            "label": "InputMessageContentList"
                                          },
                                          "ofProperty": {
                                            "name": "",
                                            "type": "$$xor",
                                            "properties": [
                                              {
                                                "name": "Input text",
                                                "type": "object",
                                                "description": "A text input to the model.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/InputTextContent",
                                                  "canonical": "objects/InputTextContent",
                                                  "label": "InputTextContent"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "The type of the input item. Always `input_text`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "defaults",
                                                        "value": "input_text"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "input_text"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "input_text",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text input to the model.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "Input image",
                                                "type": "object",
                                                "description": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/InputImageContent",
                                                  "canonical": "objects/InputImageContent",
                                                  "label": "InputImageContent"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "The type of the input item. Always `input_image`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "defaults",
                                                        "value": "input_image"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "input_image"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "input_image",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "image_url",
                                                    "type": "$$union",
                                                    "description": "",
                                                    "properties": [
                                                      {
                                                        "name": "image_url",
                                                        "type": "string",
                                                        "description": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "image_url",
                                                        "type": "null",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_id",
                                                    "type": "$$union",
                                                    "description": "",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file to be sent to the model.",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "file_id",
                                                        "type": "null",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "detail",
                                                    "type": "$$enum",
                                                    "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "low",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "high",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "auto",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "Input file",
                                                "type": "object",
                                                "description": "A file input to the model.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/InputFileContent",
                                                  "canonical": "objects/InputFileContent",
                                                  "label": "InputFileContent"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "The type of the input item. Always `input_file`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "defaults",
                                                        "value": "input_file"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "input_file"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "input_file",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "file_id",
                                                    "type": "$$union",
                                                    "description": "",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file to be sent to the model.",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "file_id",
                                                        "type": "null",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "filename",
                                                    "type": "string",
                                                    "description": "The name of the file to be sent to the model.",
                                                    "meta": []
                                                  },
                                                  {
                                                    "name": "file_data",
                                                    "type": "string",
                                                    "description": "The content of the file to be sent to the model.\n",
                                                    "meta": []
                                                  }
                                                ]
                                              }
                                            ],
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ],
                                            "symbolDef": {
                                              "id": "#/components/schemas/InputContent",
                                              "canonical": "objects/InputContent",
                                              "label": "InputContent"
                                            }
                                          }
                                        }
                                      ],
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the message input. Always `message`.\n",
                                      "meta": [
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "message"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "message",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "Eval message object",
                                  "type": "object",
                                  "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/EvalItem",
                                    "canonical": "objects/EvalItem",
                                    "label": "EvalItem"
                                  },
                                  "properties": [
                                    {
                                      "name": "role",
                                      "type": "$$enum",
                                      "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "user",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "assistant",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "system",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "developer",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "content",
                                      "type": "$$xor",
                                      "description": "Text inputs to the model - can contain template strings.\n",
                                      "properties": [
                                        {
                                          "name": "Text input",
                                          "type": "string",
                                          "description": "A text input to the model.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Input text",
                                          "type": "object",
                                          "description": "A text input to the model.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/InputTextContent",
                                            "canonical": "objects/InputTextContent",
                                            "label": "InputTextContent"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the input item. Always `input_text`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "input_text"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "input_text"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input_text",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "text",
                                              "type": "string",
                                              "description": "The text input to the model.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Output text",
                                          "type": "object",
                                          "description": "A text output from the model.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the output text. Always `output_text`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "output_text"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "output_text",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "text",
                                              "type": "string",
                                              "description": "The text output from the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the message input. Always `message`.\n",
                                      "meta": [
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "message"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "message",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "ItemReferenceInputMessages",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of input messages. Always `item_reference`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "item_reference"
                              }
                            ],
                            "properties": [
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "item_reference",
                            "type": "string",
                            "description": "A reference to a variable in the \"item\" namespace. Ie, \"item.name\"",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "meta": []
                  },
                  {
                    "name": "sampling_params",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "temperature",
                        "type": "number",
                        "description": "A higher temperature increases randomness in the outputs.",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": 1
                          }
                        ]
                      },
                      {
                        "name": "max_completion_tokens",
                        "type": "integer",
                        "description": "The maximum number of tokens in the generated output.",
                        "meta": []
                      },
                      {
                        "name": "top_p",
                        "type": "number",
                        "description": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": 1
                          }
                        ]
                      },
                      {
                        "name": "seed",
                        "type": "integer",
                        "description": "A seed value to initialize the randomness, during sampling.",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": 42
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "string",
                    "description": "The name of the model to use for generating completions (e.g. \"o3-mini\").",
                    "meta": []
                  },
                  {
                    "name": "source",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "EvalJsonlFileContentSource",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalJsonlFileContentSource",
                          "canonical": "objects/EvalJsonlFileContentSource",
                          "label": "EvalJsonlFileContentSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of jsonl source. Always `file_content`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "file_content"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_content"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_content",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the jsonl file.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "item",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "sample",
                                  "type": "object",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "EvalJsonlFileIdSource",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalJsonlFileIdSource",
                          "canonical": "objects/EvalJsonlFileIdSource",
                          "label": "EvalJsonlFileIdSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of jsonl source. Always `file_id`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "file_id"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_id"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the file.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "StoredCompletionsRunDataSource",
                        "type": "object",
                        "description": "A StoredCompletionsRunDataSource configuration describing a set of filters\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalStoredCompletionsSource",
                          "canonical": "objects/EvalStoredCompletionsSource",
                          "label": "EvalStoredCompletionsSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of source. Always `stored_completions`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "stored_completions"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "stored_completions"
                              }
                            ],
                            "properties": [
                              {
                                "name": "stored_completions",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "An optional model to filter by (e.g., 'gpt-4o').",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "created_after",
                            "type": "integer",
                            "description": "An optional Unix timestamp to filter items created after this time.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "created_before",
                            "type": "integer",
                            "description": "An optional Unix timestamp to filter items created before this time.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "limit",
                            "type": "integer",
                            "description": "An optional maximum number of items to return.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "ResponsesRunDataSource",
                "type": "object",
                "description": "A ResponsesRunDataSource object describing a model sampling configuration.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/CreateEvalResponsesRunDataSource",
                  "canonical": "objects/CreateEvalResponsesRunDataSource",
                  "label": "CreateEvalResponsesRunDataSource"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of run data source. Always `completions`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": "completions"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "completions"
                      }
                    ],
                    "properties": [
                      {
                        "name": "completions",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "input_messages",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "input_messages",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of input messages. Always `template`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "template"
                              }
                            ],
                            "properties": [
                              {
                                "name": "template",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "template",
                            "type": "$$array",
                            "description": "A list of chat messages forming the prompt or context. May include variable references to the \"item\" namespace, ie {{item.name}}.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "ChatMessage",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "role",
                                      "type": "string",
                                      "description": "The role of the message (e.g. \"system\", \"assistant\", \"user\").",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "content",
                                      "type": "string",
                                      "description": "The content of the message.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Eval message object",
                                  "type": "object",
                                  "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/EvalItem",
                                    "canonical": "objects/EvalItem",
                                    "label": "EvalItem"
                                  },
                                  "properties": [
                                    {
                                      "name": "role",
                                      "type": "$$enum",
                                      "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "user",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "assistant",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "system",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "developer",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "content",
                                      "type": "$$xor",
                                      "description": "Text inputs to the model - can contain template strings.\n",
                                      "properties": [
                                        {
                                          "name": "Text input",
                                          "type": "string",
                                          "description": "A text input to the model.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Input text",
                                          "type": "object",
                                          "description": "A text input to the model.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/InputTextContent",
                                            "canonical": "objects/InputTextContent",
                                            "label": "InputTextContent"
                                          },
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the input item. Always `input_text`.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "defaults",
                                                  "value": "input_text"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "input_text"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input_text",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "text",
                                              "type": "string",
                                              "description": "The text input to the model.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Output text",
                                          "type": "object",
                                          "description": "A text output from the model.\n",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the output text. Always `output_text`.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "output_text"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "output_text",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "text",
                                              "type": "string",
                                              "description": "The text output from the model.\n",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the message input. Always `message`.\n",
                                      "meta": [
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "message"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "message",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "input_messages",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of input messages. Always `item_reference`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "item_reference"
                              }
                            ],
                            "properties": [
                              {
                                "name": "item_reference",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "item_reference",
                            "type": "string",
                            "description": "A reference to a variable in the \"item\" namespace. Ie, \"item.name\"",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "meta": []
                  },
                  {
                    "name": "sampling_params",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "temperature",
                        "type": "number",
                        "description": "A higher temperature increases randomness in the outputs.",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": 1
                          }
                        ]
                      },
                      {
                        "name": "max_completion_tokens",
                        "type": "integer",
                        "description": "The maximum number of tokens in the generated output.",
                        "meta": []
                      },
                      {
                        "name": "top_p",
                        "type": "number",
                        "description": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": 1
                          }
                        ]
                      },
                      {
                        "name": "seed",
                        "type": "integer",
                        "description": "A seed value to initialize the randomness, during sampling.",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": 42
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "string",
                    "description": "The name of the model to use for generating completions (e.g. \"o3-mini\").",
                    "meta": []
                  },
                  {
                    "name": "source",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "EvalJsonlFileContentSource",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalJsonlFileContentSource",
                          "canonical": "objects/EvalJsonlFileContentSource",
                          "label": "EvalJsonlFileContentSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of jsonl source. Always `file_content`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "file_content"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_content"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_content",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the jsonl file.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "item",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "sample",
                                  "type": "object",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      {
                        "name": "EvalJsonlFileIdSource",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalJsonlFileIdSource",
                          "canonical": "objects/EvalJsonlFileIdSource",
                          "label": "EvalJsonlFileIdSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of jsonl source. Always `file_id`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": "file_id"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_id"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the file.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "EvalResponsesSource",
                        "type": "object",
                        "description": "A EvalResponsesSource object describing a run data source configuration.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/EvalResponsesSource",
                          "canonical": "objects/EvalResponsesSource",
                          "label": "EvalResponsesSource"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run data source. Always `responses`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "responses"
                              }
                            ],
                            "properties": [
                              {
                                "name": "responses",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Metadata filter for the responses. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The name of the model to find responses for. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions_search",
                            "type": "string",
                            "description": "Optional search string for instructions. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "created_after",
                            "type": "integer",
                            "description": "Only include items created after this timestamp (inclusive). This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 0
                              }
                            ]
                          },
                          {
                            "name": "created_before",
                            "type": "integer",
                            "description": "Only include items created before this timestamp (inclusive). This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 0
                              }
                            ]
                          },
                          {
                            "name": "has_tool_calls",
                            "type": "boolean",
                            "description": "Whether the response has tool calls. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "reasoning_effort",
                            "type": "$$enum",
                            "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "medium"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "low",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "medium",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "high",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "Sampling temperature. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "Nucleus sampling parameter. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "users",
                            "type": "$$array",
                            "description": "List of user identifiers. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "string",
                              "properties": [],
                              "description": "",
                              "meta": []
                            }
                          },
                          {
                            "name": "allow_parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to allow parallel tool calls. This is a query parameter used to select responses.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          },
          {
            "name": "error",
            "type": "object",
            "description": "An object representing an error response from the Eval API.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/EvalApiError",
              "canonical": "objects/EvalApiError",
              "label": "EvalApiError"
            },
            "properties": [
              {
                "name": "code",
                "type": "string",
                "description": "The error code.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "message",
                "type": "string",
                "description": "The error message.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/EvalRun",
          "canonical": "objects/EvalRun",
          "label": "eval.run"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run\",\n  \"id\": \"evalrun_67e57965b480819094274e3a32235e4c\",\n  \"eval_id\": \"eval_67e579652b548190aaa83ada4b125f47\",\n  \"report_url\": \"https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47?run_id=evalrun_67e57965b480819094274e3a32235e4c\",\n  \"status\": \"queued\",\n  \"model\": \"gpt-4o-mini\",\n  \"name\": \"gpt-4o-mini\",\n  \"created_at\": 1743092069,\n  \"result_counts\": {\n    \"total\": 0,\n    \"errored\": 0,\n    \"failed\": 0,\n    \"passed\": 0\n  },\n  \"per_model_usage\": null,\n  \"per_testing_criteria_results\": null,\n  \"data_source\": {\n    \"type\": \"completions\",\n    \"source\": {\n      \"type\": \"file_content\",\n      \"content\": [\n        {\n          \"item\": {\n            \"input\": \"Tech Company Launches Advanced Artificial Intelligence Platform\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Central Bank Increases Interest Rates Amid Inflation Concerns\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"International Summit Addresses Climate Change Strategies\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Major Retailer Reports Record-Breaking Holiday Sales\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"National Team Qualifies for World Championship Finals\",\n            \"ground_truth\": \"Sports\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Stock Markets Rally After Positive Economic Data Released\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Global Manufacturer Announces Merger with Competitor\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Breakthrough in Renewable Energy Technology Unveiled\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"World Leaders Sign Historic Climate Agreement\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Professional Athlete Sets New Record in Championship Event\",\n            \"ground_truth\": \"Sports\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Financial Institutions Adapt to New Regulatory Requirements\",\n            \"ground_truth\": \"Business\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Tech Conference Showcases Advances in Artificial Intelligence\",\n            \"ground_truth\": \"Technology\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Global Markets Respond to Oil Price Fluctuations\",\n            \"ground_truth\": \"Markets\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"International Cooperation Strengthened Through New Treaty\",\n            \"ground_truth\": \"World\"\n          }\n        },\n        {\n          \"item\": {\n            \"input\": \"Sports League Announces Revised Schedule for Upcoming Season\",\n            \"ground_truth\": \"Sports\"\n          }\n        }\n      ]\n    },\n    \"input_messages\": {\n      \"type\": \"template\",\n      \"template\": [\n        {\n          \"type\": \"message\",\n          \"role\": \"developer\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\\n\\n# Steps\\n\\n1. Analyze the content of the news headline to understand its primary focus.\\n2. Extract the subject matter, identifying any key indicators or keywords.\\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\\n4. Ensure only one category is selected per headline.\\n\\n# Output Format\\n\\nRespond with the chosen category as a single word. For instance: \\\"Technology\\\", \\\"Markets\\\", \\\"World\\\", \\\"Business\\\", or \\\"Sports\\\".\\n\\n# Examples\\n\\n**Input**: \\\"Apple Unveils New iPhone Model, Featuring Advanced AI Features\\\"  \\n**Output**: \\\"Technology\\\"\\n\\n**Input**: \\\"Global Stocks Mixed as Investors Await Central Bank Decisions\\\"  \\n**Output**: \\\"Markets\\\"\\n\\n**Input**: \\\"War in Ukraine: Latest Updates on Negotiation Status\\\"  \\n**Output**: \\\"World\\\"\\n\\n**Input**: \\\"Microsoft in Talks to Acquire Gaming Company for $2 Billion\\\"  \\n**Output**: \\\"Business\\\"\\n\\n**Input**: \\\"Manchester United Secures Win in Premier League Football Match\\\"  \\n**Output**: \\\"Sports\\\" \\n\\n# Notes\\n\\n- If the headline appears to fit into more than one category, choose the most dominant theme.\\n- Keywords or phrases such as \\\"stocks\\\", \\\"company acquisition\\\", \\\"match\\\", or technological brands can be good indicators for classification.\\n\"\n          }\n        },\n        {\n          \"type\": \"message\",\n          \"role\": \"user\",\n          \"content\": {\n            \"type\": \"input_text\",\n            \"text\": \"{{item.input}}\"\n          }\n        }\n      ]\n    },\n    \"model\": \"gpt-4o-mini\",\n    \"sampling_params\": {\n      \"seed\": 42,\n      \"temperature\": 1.0,\n      \"top_p\": 1.0,\n      \"max_completions_tokens\": 2048\n    }\n  },\n  \"error\": null,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "EvalRun",
      "group": [
        "Platform APIs",
        "Evals"
      ]
    }
  },
  {
    "title": "The eval run output item object",
    "description": "A schema representing an evaluation run output item.\n",
    "canonical": "evals/run-output-item-object",
    "definitions": [
      {
        "title": "EvalRunOutputItem",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The type of the object. Always \"eval.run.output_item\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": "eval.run.output_item"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "eval.run.output_item"
              }
            ],
            "properties": [
              {
                "name": "eval.run.output_item",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "Unique identifier for the evaluation run output item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The identifier of the evaluation run associated with this output item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "eval_id",
            "type": "string",
            "description": "The identifier of the evaluation group.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "Unix timestamp (in seconds) when the evaluation run was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "string",
            "description": "The status of the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "datasource_item_id",
            "type": "integer",
            "description": "The identifier for the data source item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "datasource_item",
            "type": "object",
            "description": "Details of the input data source item.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "results",
            "type": "$$array",
            "description": "A list of results from the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [],
              "description": "A result object.",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "sample",
            "type": "object",
            "description": "A sample containing the input and output of the evaluation run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "input",
                "type": "$$array",
                "description": "An array of input messages.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "role",
                      "type": "string",
                      "description": "The role of the message sender (e.g., system, user, developer).",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "content",
                      "type": "string",
                      "description": "The content of the message.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ],
                  "description": "An input message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              },
              {
                "name": "output",
                "type": "$$array",
                "description": "An array of output messages.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "role",
                      "type": "string",
                      "description": "The role of the message (e.g. \"system\", \"assistant\", \"user\").",
                      "meta": []
                    },
                    {
                      "name": "content",
                      "type": "string",
                      "description": "The content of the message.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              },
              {
                "name": "finish_reason",
                "type": "string",
                "description": "The reason why the sample generation was finished.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "string",
                "description": "The model used for generating the sample.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "usage",
                "type": "object",
                "description": "Token usage details for the sample.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "total_tokens",
                    "type": "integer",
                    "description": "The total number of tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "completion_tokens",
                    "type": "integer",
                    "description": "The number of completion tokens generated.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "prompt_tokens",
                    "type": "integer",
                    "description": "The number of prompt tokens used.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "cached_tokens",
                    "type": "integer",
                    "description": "The number of tokens retrieved from cache.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "error",
                "type": "object",
                "description": "An object representing an error response from the Eval API.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/EvalApiError",
                  "canonical": "objects/EvalApiError",
                  "label": "EvalApiError"
                },
                "properties": [
                  {
                    "name": "code",
                    "type": "string",
                    "description": "The error code.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "message",
                    "type": "string",
                    "description": "The error message.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "The sampling temperature used.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "max_completion_tokens",
                "type": "integer",
                "description": "The maximum number of tokens allowed for completion.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "The top_p value used for sampling.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "seed",
                "type": "integer",
                "description": "The seed used for generating the sample.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/EvalRunOutputItem",
          "canonical": "objects/EvalRunOutputItem",
          "label": "eval.run.output_item"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"eval.run.output_item\",\n  \"id\": \"outputitem_67abd55eb6548190bb580745d5644a33\",\n  \"run_id\": \"evalrun_67abd54d60ec8190832b46859da808f7\",\n  \"eval_id\": \"eval_67abd54d9b0081909a86353f6fb9317a\",\n  \"created_at\": 1739314509,\n  \"status\": \"pass\",\n  \"datasource_item_id\": 137,\n  \"datasource_item\": {\n      \"teacher\": \"To grade essays, I only check for style, content, and grammar.\",\n      \"student\": \"I am a student who is trying to write the best essay.\"\n  },\n  \"results\": [\n    {\n      \"name\": \"String Check Grader\",\n      \"type\": \"string-check-grader\",\n      \"score\": 1.0,\n      \"passed\": true,\n    }\n  ],\n  \"sample\": {\n    \"input\": [\n      {\n        \"role\": \"system\",\n        \"content\": \"You are an evaluator bot...\"\n      },\n      {\n        \"role\": \"user\",\n        \"content\": \"You are assessing...\"\n      }\n    ],\n    \"output\": [\n      {\n        \"role\": \"assistant\",\n        \"content\": \"The rubric is not clear nor concise.\"\n      }\n    ],\n    \"finish_reason\": \"stop\",\n    \"model\": \"gpt-4o-2024-08-06\",\n    \"usage\": {\n      \"total_tokens\": 521,\n      \"completion_tokens\": 2,\n      \"prompt_tokens\": 519,\n      \"cached_tokens\": 0\n    },\n    \"error\": null,\n    \"temperature\": 1.0,\n    \"max_completion_tokens\": 2048,\n    \"top_p\": 1.0,\n    \"seed\": 42\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "EvalRunOutputItem",
      "group": [
        "Platform APIs",
        "Evals"
      ]
    }
  },
  {
    "title": "Create fine-tuning job",
    "canonical": "fine-tuning/create",
    "description": "Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/fine_tuning/jobs",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/jobs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"training_file\": \"file-BK7bzQj3FfZFXr7DbL6xJwfo\",\n    \"model\": \"gpt-4o-mini\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.create(\n  training_file=\"file-abc123\",\n  model=\"gpt-4o-mini\"\n)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const fineTune = await openai.fineTuning.jobs.create({\n    training_file: \"file-abc123\"\n  });\n\n  console.log(fineTune);\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Epochs",
              "codeblock": {
                "title": "Epochs",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"training_file\": \"file-abc123\",\n    \"model\": \"gpt-4o-mini\",\n    \"method\": {\n      \"type\": \"supervised\",\n      \"supervised\": {\n        \"hyperparameters\": {\n          \"n_epochs\": 2\n        }\n      }\n    }\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.create(\n  training_file=\"file-abc123\",\n  model=\"gpt-4o-mini\",\n  method={\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"n_epochs\": 2\n      }\n    }\n  }\n)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const fineTune = await openai.fineTuning.jobs.create({\n    training_file: \"file-abc123\",\n    model: \"gpt-4o-mini\",\n    method: {\n      type: \"supervised\",\n      supervised: {\n        hyperparameters: {\n          n_epochs: 2\n        }\n      }\n    }\n  });\n\n  console.log(fineTune);\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Validation file",
              "codeblock": {
                "title": "Validation file",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"training_file\": \"file-abc123\",\n    \"validation_file\": \"file-abc123\",\n    \"model\": \"gpt-4o-mini\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.create(\n  training_file=\"file-abc123\",\n  validation_file=\"file-def456\",\n  model=\"gpt-4o-mini\"\n)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const fineTune = await openai.fineTuning.jobs.create({\n    training_file: \"file-abc123\",\n    validation_file: \"file-abc123\"\n  });\n\n  console.log(fineTune);\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "DPO",
              "codeblock": {
                "title": "DPO",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"training_file\": \"file-abc123\",\n    \"validation_file\": \"file-abc123\",\n    \"model\": \"gpt-4o-mini\",\n    \"method\": {\n      \"type\": \"dpo\",\n      \"dpo\": {\n        \"hyperparameters\": {\n          \"beta\": 0.1,\n        }\n      }\n    }\n  }'\n"
                  }
                ]
              }
            },
            {
              "description": "W&B Integration",
              "codeblock": {
                "title": "W&B Integration",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"training_file\": \"file-abc123\",\n    \"validation_file\": \"file-abc123\",\n    \"model\": \"gpt-4o-mini\",\n    \"integrations\": [\n      {\n        \"type\": \"wandb\",\n        \"wandb\": {\n          \"project\": \"my-wandb-project\",\n          \"name\": \"ft-run-display-name\"\n          \"tags\": [\n            \"first-experiment\", \"v2\"\n          ]\n        }\n      }\n    ]\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n  \"created_at\": 1721764800,\n  \"fine_tuned_model\": null,\n  \"organization_id\": \"org-123\",\n  \"result_files\": [],\n  \"status\": \"queued\",\n  \"validation_file\": null,\n  \"training_file\": \"file-abc123\",\n  \"method\": {\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"batch_size\": \"auto\",\n        \"learning_rate_multiplier\": \"auto\",\n        \"n_epochs\": \"auto\",\n      }\n    }\n  },\n  \"metadata\": null\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Epochs",
              "codeblock": {
                "title": "Epochs",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n  \"created_at\": 1721764800,\n  \"fine_tuned_model\": null,\n  \"organization_id\": \"org-123\",\n  \"result_files\": [],\n  \"status\": \"queued\",\n  \"validation_file\": null,\n  \"training_file\": \"file-abc123\",\n  \"hyperparameters\": {\"n_epochs\": 2},\n  \"method\": {\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"batch_size\": \"auto\",\n        \"learning_rate_multiplier\": \"auto\",\n        \"n_epochs\": 2,\n      }\n    }\n  },\n  \"metadata\": null\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Validation file",
              "codeblock": {
                "title": "Validation file",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n  \"created_at\": 1721764800,\n  \"fine_tuned_model\": null,\n  \"organization_id\": \"org-123\",\n  \"result_files\": [],\n  \"status\": \"queued\",\n  \"validation_file\": \"file-abc123\",\n  \"training_file\": \"file-abc123\",\n  \"method\": {\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"batch_size\": \"auto\",\n        \"learning_rate_multiplier\": \"auto\",\n        \"n_epochs\": \"auto\",\n      }\n    }\n  },\n  \"metadata\": null\n}\n"
                  }
                ]
              }
            },
            {
              "description": "DPO",
              "codeblock": {
                "title": "DPO",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n  \"created_at\": 1721764800,\n  \"fine_tuned_model\": null,\n  \"organization_id\": \"org-123\",\n  \"result_files\": [],\n  \"status\": \"queued\",\n  \"validation_file\": \"file-abc123\",\n  \"training_file\": \"file-abc123\",\n  \"method\": {\n    \"type\": \"dpo\",\n    \"dpo\": {\n      \"hyperparameters\": {\n        \"beta\": 0.1,\n        \"batch_size\": \"auto\",\n        \"learning_rate_multiplier\": \"auto\",\n        \"n_epochs\": \"auto\",\n      }\n    }\n  },\n  \"metadata\": null\n}\n"
                  }
                ]
              }
            },
            {
              "description": "W&B Integration",
              "codeblock": {
                "title": "W&B Integration",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n  \"created_at\": 1721764800,\n  \"fine_tuned_model\": null,\n  \"organization_id\": \"org-123\",\n  \"result_files\": [],\n  \"status\": \"queued\",\n  \"validation_file\": \"file-abc123\",\n  \"training_file\": \"file-abc123\",\n  \"integrations\": [\n    {\n      \"type\": \"wandb\",\n      \"wandb\": {\n        \"project\": \"my-wandb-project\",\n        \"entity\": None,\n        \"run_id\": \"ftjob-abc123\"\n      }\n    }\n  ],\n  \"method\": {\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"batch_size\": \"auto\",\n        \"learning_rate_multiplier\": \"auto\",\n        \"n_epochs\": \"auto\",\n      }\n    }\n  },\n  \"metadata\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "model",
                "type": "$$union",
                "description": "The name of the model to fine-tune. You can select one of the\n[supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "babbage-002",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "davinci-002",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "training_file",
                "type": "string",
                "description": "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.\n\nThe contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning) for more details.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "file-abc123"
                  }
                ]
              },
              {
                "name": "hyperparameters",
                "type": "object",
                "description": "The hyperparameters used for the fine-tuning job.\nThis value is now deprecated in favor of `method`, and should be passed in under the `method` parameter.\n",
                "meta": [
                  {
                    "name": "deprecated",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "batch_size",
                    "type": "$$xor",
                    "description": "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.\n",
                    "properties": [
                      {
                        "name": "batch_size",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "auto"
                          }
                        ],
                        "properties": [
                          {
                            "name": "auto",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "batch_size",
                        "type": "integer",
                        "description": "",
                        "meta": [
                          {
                            "name": "maximum",
                            "value": 256
                          },
                          {
                            "name": "minimum",
                            "value": 1
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      }
                    ]
                  },
                  {
                    "name": "learning_rate_multiplier",
                    "type": "$$xor",
                    "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.\n",
                    "properties": [
                      {
                        "name": "learning_rate_multiplier",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "auto"
                          }
                        ],
                        "properties": [
                          {
                            "name": "auto",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "learning_rate_multiplier",
                        "type": "number",
                        "description": "",
                        "meta": [
                          {
                            "name": "minimum",
                            "value": 0
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      }
                    ]
                  },
                  {
                    "name": "n_epochs",
                    "type": "$$xor",
                    "description": "The number of epochs to train the model for. An epoch refers to one full cycle\nthrough the training dataset.\n",
                    "properties": [
                      {
                        "name": "n_epochs",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "auto"
                          }
                        ],
                        "properties": [
                          {
                            "name": "auto",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "n_epochs",
                        "type": "integer",
                        "description": "",
                        "meta": [
                          {
                            "name": "maximum",
                            "value": 50
                          },
                          {
                            "name": "minimum",
                            "value": 1
                          }
                        ]
                      }
                    ],
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "suffix",
                "type": "string",
                "description": "A string of up to 64 characters that will be added to your fine-tuned model name.\n\nFor example, a `suffix` of \"custom-model-name\" would produce a model name like `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "validation_file",
                "type": "string",
                "description": "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation\nmetrics periodically during fine-tuning. These metrics can be viewed in\nthe fine-tuning results file.\nThe same data should not be present in both train and validation files.\n\nYour dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning) for more details.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "file-abc123"
                  }
                ]
              },
              {
                "name": "integrations",
                "type": "$$array",
                "description": "A list of integrations to enable for your fine-tuning job.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$xor",
                      "description": "The type of integration to enable. Currently, only \"wandb\" (Weights and Biases) is supported.\n",
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "wandb"
                            }
                          ],
                          "properties": [
                            {
                              "name": "wandb",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "wandb",
                      "type": "object",
                      "description": "The settings for your integration with Weights and Biases. This payload specifies the project that\nmetrics will be sent to. Optionally, you can set an explicit display name for your run, add tags\nto your run, and set a default entity (team, username, etc) to be associated with your run.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "project",
                          "type": "string",
                          "description": "The name of the project that the new run will be created under.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "example",
                              "value": "my-wandb-project"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "A display name to set for the run. If not set, we will use the Job ID as the name.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "entity",
                          "type": "string",
                          "description": "The entity to use for the run. This allows you to set the team or username of the WandB user that you would\nlike associated with the run. If not set, the default entity for the registered WandB API key is used.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "tags",
                          "type": "$$array",
                          "description": "A list of tags to be attached to the newly created run. These tags are passed through directly to WandB. Some\ndefault tags are generated by OpenAI: \"openai/finetune\", \"openai/{base-model}\", \"openai/{ftjob-abcdef}\".\n",
                          "meta": [],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "example",
                                "value": "custom-tag"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "seed",
                "type": "integer",
                "description": "The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases.\nIf a seed is not specified, one will be generated for you.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 42
                  },
                  {
                    "name": "maximum",
                    "value": 2147483647
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "method",
                "type": "object",
                "description": "The method used for fine-tuning.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/FineTuneMethod",
                  "canonical": "objects/FineTuneMethod",
                  "label": "FineTuneMethod"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of method. Is either `supervised` or `dpo`.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "supervised",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "dpo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "supervised",
                    "type": "object",
                    "description": "Configuration for the supervised fine-tuning method.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/FineTuneSupervisedMethod",
                      "canonical": "objects/FineTuneSupervisedMethod",
                      "label": "FineTuneSupervisedMethod"
                    },
                    "properties": [
                      {
                        "name": "hyperparameters",
                        "type": "object",
                        "description": "The hyperparameters used for the fine-tuning job.",
                        "meta": [],
                        "properties": [
                          {
                            "name": "batch_size",
                            "type": "$$xor",
                            "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n",
                            "properties": [
                              {
                                "name": "batch_size",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "batch_size",
                                "type": "integer",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "maximum",
                                    "value": 256
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          },
                          {
                            "name": "learning_rate_multiplier",
                            "type": "$$xor",
                            "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n",
                            "properties": [
                              {
                                "name": "learning_rate_multiplier",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "learning_rate_multiplier",
                                "type": "number",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "minimum",
                                    "value": 0
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          },
                          {
                            "name": "n_epochs",
                            "type": "$$xor",
                            "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n",
                            "properties": [
                              {
                                "name": "n_epochs",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "n_epochs",
                                "type": "integer",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "maximum",
                                    "value": 50
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "dpo",
                    "type": "object",
                    "description": "Configuration for the DPO fine-tuning method.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/FineTuneDPOMethod",
                      "canonical": "objects/FineTuneDPOMethod",
                      "label": "FineTuneDPOMethod"
                    },
                    "properties": [
                      {
                        "name": "hyperparameters",
                        "type": "object",
                        "description": "The hyperparameters used for the fine-tuning job.",
                        "meta": [],
                        "properties": [
                          {
                            "name": "beta",
                            "type": "$$xor",
                            "description": "The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.\n",
                            "properties": [
                              {
                                "name": "beta",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "beta",
                                "type": "number",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "maximum",
                                    "value": 2
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 0
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          },
                          {
                            "name": "batch_size",
                            "type": "$$xor",
                            "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n",
                            "properties": [
                              {
                                "name": "batch_size",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "batch_size",
                                "type": "integer",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "maximum",
                                    "value": 256
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          },
                          {
                            "name": "learning_rate_multiplier",
                            "type": "$$xor",
                            "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n",
                            "properties": [
                              {
                                "name": "learning_rate_multiplier",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "learning_rate_multiplier",
                                "type": "number",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "minimum",
                                    "value": 0
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          },
                          {
                            "name": "n_epochs",
                            "type": "$$xor",
                            "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n",
                            "properties": [
                              {
                                "name": "n_epochs",
                                "type": "$$enum",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "n_epochs",
                                "type": "integer",
                                "description": "",
                                "meta": [
                                  {
                                    "name": "maximum",
                                    "value": 50
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "defaults",
                                "value": "auto"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateFineTuningJobRequest",
              "canonical": "objects/CreateFineTuningJobRequest",
              "label": "CreateFineTuningJobRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [fine-tuning.job](/docs/api-reference/fine-tuning/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List fine-tuning jobs",
    "canonical": "fine-tuning/list",
    "description": "List your organization's fine-tuning jobs\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/fine_tuning/jobs",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/jobs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs?limit=2&metadata[key]=value \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.list()\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const list = await openai.fineTuning.jobs.list();\n\n  for await (const fineTune of list) {\n    console.log(fineTune);\n  }\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"fine_tuning.job\",\n      \"id\": \"ftjob-abc123\",\n      \"model\": \"gpt-4o-mini-2024-07-18\",\n      \"created_at\": 1721764800,\n      \"fine_tuned_model\": null,\n      \"organization_id\": \"org-123\",\n      \"result_files\": [],\n      \"status\": \"queued\",\n      \"validation_file\": null,\n      \"training_file\": \"file-abc123\",\n      \"metadata\": {\n        \"key\": \"value\"\n      }\n    },\n    { ... },\n    { ... }\n  ], \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last job from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of fine-tuning jobs to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Optional metadata filter. To filter, use the syntax `metadata[k]=v`. Alternatively, set `metadata=null` to indicate no metadata.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated [fine-tuning job](/docs/api-reference/fine-tuning/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "List fine-tuning events",
    "canonical": "fine-tuning/list-events",
    "description": "Get status updates for a fine-tuning job.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/fine_tuning/jobs/{fine_tuning_job_id}/events",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id}/events",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs/ftjob-abc123/events \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.list_events(\n  fine_tuning_job_id=\"ftjob-abc123\",\n  limit=2\n)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const list = await openai.fineTuning.list_events(id=\"ftjob-abc123\", limit=2);\n\n  for await (const fineTune of list) {\n    console.log(fineTune);\n  }\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"fine_tuning.job.event\",\n      \"id\": \"ft-event-ddTJfwuMVpfLXseO0Am0Gqjm\",\n      \"created_at\": 1721764800,\n      \"level\": \"info\",\n      \"message\": \"Fine tuning job successfully completed\",\n      \"data\": null,\n      \"type\": \"message\"\n    },\n    {\n      \"object\": \"fine_tuning.job.event\",\n      \"id\": \"ft-event-tyiGuB72evQncpH87xe505Sv\",\n      \"created_at\": 1721764800,\n      \"level\": \"info\",\n      \"message\": \"New fine-tuned model created: ft:gpt-4o-mini:openai::7p4lURel\",\n      \"data\": null,\n      \"type\": \"message\"\n    }\n  ],\n  \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuning_job_id",
            "type": "string",
            "description": "The ID of the fine-tuning job to get events for.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft-AF1WoRqd3aJAHsqc9NY7iL8F"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last event from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of events to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of fine-tuning event objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "List fine-tuning checkpoints",
    "canonical": "fine-tuning/list-checkpoints",
    "description": "List checkpoints for a fine-tuning job.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs/ftjob-abc123/checkpoints \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\"\n  \"data\": [\n    {\n      \"object\": \"fine_tuning.job.checkpoint\",\n      \"id\": \"ftckpt_zc4Q7MP6XxulcVzj4MZdwsAB\",\n      \"created_at\": 1721764867,\n      \"fine_tuned_model_checkpoint\": \"ft:gpt-4o-mini-2024-07-18:my-org:custom-suffix:96olL566:ckpt-step-2000\",\n      \"metrics\": {\n        \"full_valid_loss\": 0.134,\n        \"full_valid_mean_token_accuracy\": 0.874\n      },\n      \"fine_tuning_job_id\": \"ftjob-abc123\",\n      \"step_number\": 2000,\n    },\n    {\n      \"object\": \"fine_tuning.job.checkpoint\",\n      \"id\": \"ftckpt_enQCFmOTGj3syEpYVhBRLTSy\",\n      \"created_at\": 1721764800,\n      \"fine_tuned_model_checkpoint\": \"ft:gpt-4o-mini-2024-07-18:my-org:custom-suffix:7q8mpxmy:ckpt-step-1000\",\n      \"metrics\": {\n        \"full_valid_loss\": 0.167,\n        \"full_valid_mean_token_accuracy\": 0.781\n      },\n      \"fine_tuning_job_id\": \"ftjob-abc123\",\n      \"step_number\": 1000,\n    },\n  ],\n  \"first_id\": \"ftckpt_zc4Q7MP6XxulcVzj4MZdwsAB\",\n  \"last_id\": \"ftckpt_enQCFmOTGj3syEpYVhBRLTSy\",\n  \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuning_job_id",
            "type": "string",
            "description": "The ID of the fine-tuning job to get checkpoints for.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft-AF1WoRqd3aJAHsqc9NY7iL8F"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last checkpoint ID from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of checkpoints to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 10
              }
            ]
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of fine-tuning [checkpoint objects](/docs/api-reference/fine-tuning/checkpoint-object) for a fine-tuning job.",
        "properties": []
      }
    ]
  },
  {
    "title": "List checkpoint permissions",
    "canonical": "fine-tuning/list-permissions",
    "description": "**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).\n\nOrganization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd/permissions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"checkpoint.permission\",\n      \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n      \"created_at\": 1721764867,\n      \"project_id\": \"proj_abGMw1llN8IrBb6SvvY5A1iH\"\n    },\n    {\n      \"object\": \"checkpoint.permission\",\n      \"id\": \"cp_enQCFmOTGj3syEpYVhBRLTSy\",\n      \"created_at\": 1721764800,\n      \"project_id\": \"proj_iqGMw1llN8IrBb6SvvY5A1oF\"\n    },\n  ],\n  \"first_id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n  \"last_id\": \"cp_enQCFmOTGj3syEpYVhBRLTSy\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuned_model_checkpoint",
            "type": "string",
            "description": "The ID of the fine-tuned model checkpoint to get permissions for.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft-AF1WoRqd3aJAHsqc9NY7iL8F"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project to get permissions for.",
            "meta": []
          },
          {
            "name": "after",
            "type": "string",
            "description": "Identifier for the last permission ID from the previous pagination request.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Number of permissions to retrieve.",
            "meta": [
              {
                "name": "defaults",
                "value": 10
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "The order in which to retrieve permissions.",
            "meta": [
              {
                "name": "defaults",
                "value": "descending"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "ascending",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "descending",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of fine-tuned model checkpoint [permission objects](/docs/api-reference/fine-tuning/permission-object) for a fine-tuned model checkpoint.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create checkpoint permissions",
    "canonical": "fine-tuning/create-permission",
    "description": "**NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).\n\nThis enables organization owners to share fine-tuned models with other projects in their organization.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd/permissions \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n  -d '{\"project_ids\": [\"proj_abGMw1llN8IrBb6SvvY5A1iH\"]}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"checkpoint.permission\",\n      \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n      \"created_at\": 1721764867,\n      \"project_id\": \"proj_abGMw1llN8IrBb6SvvY5A1iH\"\n    }\n  ],\n  \"first_id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n  \"last_id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuned_model_checkpoint",
            "type": "string",
            "description": "The ID of the fine-tuned model checkpoint to create a permission for.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "project_ids",
                "type": "$$array",
                "description": "The project identifiers to grant access to.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateFineTuningCheckpointPermissionRequest",
              "canonical": "objects/CreateFineTuningCheckpointPermissionRequest",
              "label": "CreateFineTuningCheckpointPermissionRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A list of fine-tuned model checkpoint [permission objects](/docs/api-reference/fine-tuning/permission-object) for a fine-tuned model checkpoint.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete checkpoint permission",
    "canonical": "fine-tuning/delete-permission",
    "description": "**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).\n\nOrganization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.\n",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/checkpoints/ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd/permissions/cp_zc4Q7MP6XxulcVzj4MZdwsAB \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"checkpoint.permission\",\n  \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuned_model_checkpoint",
            "type": "string",
            "description": "The ID of the fine-tuned model checkpoint to delete a permission for.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd"
              }
            ]
          },
          {
            "name": "permission_id",
            "type": "string",
            "description": "The ID of the fine-tuned model checkpoint permission to delete.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "cp_zc4Q7MP6XxulcVzj4MZdwsAB"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The deletion status of the fine-tuned model checkpoint [permission object](/docs/api-reference/fine-tuning/permission-object).",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve fine-tuning job",
    "canonical": "fine-tuning/retrieve",
    "description": "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/fine_tuning/jobs/{fine_tuning_job_id}",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/fine_tuning/jobs/ft-AF1WoRqd3aJAHsqc9NY7iL8F \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.retrieve(\"ftjob-abc123\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const fineTune = await openai.fineTuning.jobs.retrieve(\"ftjob-abc123\");\n\n  console.log(fineTune);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"davinci-002\",\n  \"created_at\": 1692661014,\n  \"finished_at\": 1692661190,\n  \"fine_tuned_model\": \"ft:davinci-002:my-org:custom_suffix:7q8mpxmy\",\n  \"organization_id\": \"org-123\",\n  \"result_files\": [\n      \"file-abc123\"\n  ],\n  \"status\": \"succeeded\",\n  \"validation_file\": null,\n  \"training_file\": \"file-abc123\",\n  \"hyperparameters\": {\n      \"n_epochs\": 4,\n      \"batch_size\": 1,\n      \"learning_rate_multiplier\": 1.0\n  },\n  \"trained_tokens\": 5768,\n  \"integrations\": [],\n  \"seed\": 0,\n  \"estimated_finish\": 0,\n  \"method\": {\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"n_epochs\": 4,\n        \"batch_size\": 1,\n        \"learning_rate_multiplier\": 1.0\n      }\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuning_job_id",
            "type": "string",
            "description": "The ID of the fine-tuning job.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft-AF1WoRqd3aJAHsqc9NY7iL8F"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [fine-tuning](/docs/api-reference/fine-tuning/object) object with the given ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Cancel fine-tuning",
    "canonical": "fine-tuning/cancel",
    "description": "Immediately cancel a fine-tune job.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/fine_tuning/jobs/{fine_tuning_job_id}/cancel",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ],
      "fullPath": "https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id}/cancel",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/fine_tuning/jobs/ftjob-abc123/cancel \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.fine_tuning.jobs.cancel(\"ftjob-abc123\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const fineTune = await openai.fineTuning.jobs.cancel(\"ftjob-abc123\");\n\n  console.log(fineTune);\n}\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n  \"created_at\": 1721764800,\n  \"fine_tuned_model\": null,\n  \"organization_id\": \"org-123\",\n  \"result_files\": [],\n  \"status\": \"cancelled\",\n  \"validation_file\": \"file-abc123\",\n  \"training_file\": \"file-abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "fine_tuning_job_id",
            "type": "string",
            "description": "The ID of the fine-tuning job to cancel.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft-AF1WoRqd3aJAHsqc9NY7iL8F"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The cancelled [fine-tuning](/docs/api-reference/fine-tuning/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Training format for chat models using the supervised method",
    "description": "The per-line training example of a fine-tuning input file for chat models using the supervised method.",
    "canonical": "fine-tuning/chat-input",
    "definitions": [
      {
        "title": "FineTuneChatRequestInput",
        "properties": [
          {
            "name": "messages",
            "type": "$$array",
            "description": "",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "System message",
                  "type": "object",
                  "description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.\n",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestSystemMessage",
                    "canonical": "objects/ChatCompletionRequestSystemMessage",
                    "label": "ChatCompletionRequestSystemMessage"
                  },
                  "properties": [
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "The contents of the system message.",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The contents of the system message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type. For system messages, only type `text` is supported.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Text content part",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestSystemMessageContentPart",
                              "canonical": "objects/ChatCompletionRequestSystemMessageContentPart",
                              "label": "ChatCompletionRequestSystemMessageContentPart"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionRequestSystemMessageContentPart",
                            "canonical": "objects/ChatCompletionRequestSystemMessageContentPart",
                            "label": "ChatCompletionRequestSystemMessageContentPart"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `system`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "system"
                        }
                      ],
                      "properties": [
                        {
                          "name": "system",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                      "meta": []
                    }
                  ]
                },
                {
                  "name": "User message",
                  "type": "object",
                  "description": "Messages sent by an end user, containing prompts or additional context\ninformation.\n",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestUserMessage",
                    "canonical": "objects/ChatCompletionRequestUserMessage",
                    "label": "ChatCompletionRequestUserMessage"
                  },
                  "properties": [
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "The contents of the user message.\n",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The text contents of the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text, image, or audio inputs.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Text content part",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Image content part",
                                "type": "object",
                                "description": "Learn about [image inputs](/docs/guides/vision).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartImage",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartImage",
                                  "label": "ChatCompletionRequestMessageContentPartImage"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "image_url"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "image_url",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "image_url",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "url",
                                        "type": "string",
                                        "description": "Either a URL of the image or the base64 encoded image data.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "detail",
                                        "type": "$$enum",
                                        "description": "Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": "auto"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "auto",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "low",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "high",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Audio content part",
                                "type": "object",
                                "description": "Learn about [audio inputs](/docs/guides/audio).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartAudio",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartAudio",
                                  "label": "ChatCompletionRequestMessageContentPartAudio"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part. Always `input_audio`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "input_audio"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "input_audio",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "input_audio",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "data",
                                        "type": "string",
                                        "description": "Base64 encoded audio data.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "format",
                                        "type": "$$enum",
                                        "description": "The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "wav",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "mp3",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "File content part",
                                "type": "object",
                                "description": "Learn about [file inputs](/docs/guides/text) for text generation.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartFile",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartFile",
                                  "label": "ChatCompletionRequestMessageContentPartFile"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part. Always `file`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "file"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "file",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "filename",
                                        "type": "string",
                                        "description": "The name of the file, used when passing the file to the model as a \nstring.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "file_data",
                                        "type": "string",
                                        "description": "The base64 encoded file data, used when passing the file to the model \nas a string.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of an uploaded file to use as input.\n",
                                        "meta": []
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestUserMessageContentPart",
                              "canonical": "objects/ChatCompletionRequestUserMessageContentPart",
                              "label": "ChatCompletionRequestUserMessageContentPart"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionRequestUserMessageContentPart",
                            "canonical": "objects/ChatCompletionRequestUserMessageContentPart",
                            "label": "ChatCompletionRequestUserMessageContentPart"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `user`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "user"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                      "meta": []
                    }
                  ]
                },
                {
                  "name": "",
                  "type": "object",
                  "description": "",
                  "properties": [
                    {
                      "name": "weight",
                      "type": "$$enum",
                      "description": "Controls whether the assistant message is trained against (0 or 1)",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "integer"
                        }
                      ],
                      "properties": [
                        {
                          "name": "0",
                          "type": "integer",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "1",
                          "type": "integer",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "integer"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The contents of the assistant message.",
                          "meta": []
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type. Can be one or more of type `text`, or exactly one of type `refusal`.",
                          "meta": [],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Text content part",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Refusal content part",
                                "type": "object",
                                "description": "",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartRefusal",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartRefusal",
                                  "label": "ChatCompletionRequestMessageContentPartRefusal"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal message generated by the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                              "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                              "label": "ChatCompletionRequestAssistantMessageContentPart"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                            "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                            "label": "ChatCompletionRequestAssistantMessageContentPart"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "refusal",
                      "type": "string",
                      "description": "The refusal message by the assistant.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `assistant`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "assistant"
                        }
                      ],
                      "properties": [
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "object",
                      "description": "Data about a previous audio response from the model. \n[Learn more](/docs/guides/audio).\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "Unique identifier for a previous audio response from the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "tool_calls",
                      "type": "$$array",
                      "description": "The tool calls generated by the model, such as function calls.",
                      "meta": [],
                      "properties": [
                        {
                          "name": "",
                          "type": "object",
                          "description": "",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionMessageToolCall",
                            "canonical": "objects/ChatCompletionMessageToolCall",
                            "label": "ChatCompletionMessageToolCall"
                          },
                          "properties": [
                            {
                              "name": "id",
                              "type": "string",
                              "description": "The ID of the tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the tool. Currently, only `function` is supported.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "function"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "function",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "function",
                              "type": "object",
                              "description": "The function that the model called.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "name",
                                  "type": "string",
                                  "description": "The name of the function to call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "arguments",
                                  "type": "string",
                                  "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                        "canonical": "objects/ChatCompletionMessageToolCalls",
                        "label": "ChatCompletionMessageToolCalls"
                      }
                    },
                    {
                      "name": "function_call",
                      "type": "object",
                      "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                      "meta": [
                        {
                          "name": "deprecated",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/FineTuneChatCompletionRequestAssistantMessage",
                    "canonical": "objects/FineTuneChatCompletionRequestAssistantMessage",
                    "label": "FineTuneChatCompletionRequestAssistantMessage"
                  }
                },
                {
                  "name": "Tool message",
                  "type": "object",
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestToolMessage",
                    "canonical": "objects/ChatCompletionRequestToolMessage",
                    "label": "ChatCompletionRequestToolMessage"
                  },
                  "properties": [
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `tool`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "tool"
                        }
                      ],
                      "properties": [
                        {
                          "name": "tool",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "The contents of the tool message.",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The contents of the tool message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type. For tool messages, only type `text` is supported.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Text content part",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestToolMessageContentPart",
                              "canonical": "objects/ChatCompletionRequestToolMessageContentPart",
                              "label": "ChatCompletionRequestToolMessageContentPart"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionRequestToolMessageContentPart",
                            "canonical": "objects/ChatCompletionRequestToolMessageContentPart",
                            "label": "ChatCompletionRequestToolMessageContentPart"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "tool_call_id",
                      "type": "string",
                      "description": "Tool call that this message is responding to.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Function message",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "deprecated",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestFunctionMessage",
                    "canonical": "objects/ChatCompletionRequestFunctionMessage",
                    "label": "ChatCompletionRequestFunctionMessage"
                  },
                  "properties": [
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `function`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "string",
                      "description": "The contents of the function message.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to call.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "tools",
            "type": "$$array",
            "description": "A list of tools the model may generate JSON inputs for.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "type",
                  "type": "$$enum",
                  "description": "The type of the tool. Currently, only `function` is supported.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    },
                    {
                      "name": "const",
                      "value": "function"
                    }
                  ],
                  "properties": [
                    {
                      "name": "function",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "function",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/FunctionObject",
                    "canonical": "objects/FunctionObject",
                    "label": "FunctionObject"
                  },
                  "properties": [
                    {
                      "name": "description",
                      "type": "string",
                      "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "parameters",
                      "type": "object",
                      "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionParameters",
                        "canonical": "objects/FunctionParameters",
                        "label": "FunctionParameters"
                      }
                    },
                    {
                      "name": "strict",
                      "type": "boolean",
                      "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                      "meta": [
                        {
                          "name": "defaults",
                          "value": false
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/ChatCompletionTool",
                "canonical": "objects/ChatCompletionTool",
                "label": "ChatCompletionTool"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/ChatCompletionTool",
              "canonical": "objects/ChatCompletionTool",
              "label": "ChatCompletionTool"
            }
          },
          {
            "name": "parallel_tool_calls",
            "type": "boolean",
            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
            "meta": [
              {
                "name": "defaults",
                "value": true
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ParallelToolCalls",
              "canonical": "objects/ParallelToolCalls",
              "label": "ParallelToolCalls"
            }
          },
          {
            "name": "functions",
            "type": "$$array",
            "description": "A list of functions the model may generate JSON inputs for.",
            "meta": [
              {
                "name": "deprecated",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "description",
                  "type": "string",
                  "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                  "meta": []
                },
                {
                  "name": "name",
                  "type": "string",
                  "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "parameters",
                  "type": "object",
                  "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/FunctionParameters",
                    "canonical": "objects/FunctionParameters",
                    "label": "FunctionParameters"
                  }
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "deprecated",
                  "value": "true"
                }
              ],
              "symbolDef": {
                "id": "#/components/schemas/ChatCompletionFunctions",
                "canonical": "objects/ChatCompletionFunctions",
                "label": "ChatCompletionFunctions"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/ChatCompletionFunctions",
              "canonical": "objects/ChatCompletionFunctions",
              "label": "ChatCompletionFunctions"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTuneChatRequestInput",
          "canonical": "objects/FineTuneChatRequestInput",
          "label": "FineTuneChatRequestInput"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"messages\": [\n    { \"role\": \"user\", \"content\": \"What is the weather in San Francisco?\" },\n    {\n      \"role\": \"assistant\",\n      \"tool_calls\": [\n        {\n          \"id\": \"call_id\",\n          \"type\": \"function\",\n          \"function\": {\n            \"name\": \"get_current_weather\",\n            \"arguments\": \"{\\\"location\\\": \\\"San Francisco, USA\\\", \\\"format\\\": \\\"celsius\\\"}\"\n          }\n        }\n      ]\n    }\n  ],\n  \"parallel_tool_calls\": false,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n                \"type\": \"string\",\n                \"description\": \"The city and country, eg. San Francisco, USA\"\n            },\n            \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"] }\n          },\n          \"required\": [\"location\", \"format\"]\n        }\n      }\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTuneChatRequestInput",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "Training format for chat models using the preference method",
    "description": "The per-line training example of a fine-tuning input file for chat models using the dpo method.",
    "canonical": "fine-tuning/preference-input",
    "definitions": [
      {
        "title": "FineTunePreferenceRequestInput",
        "properties": [
          {
            "name": "input",
            "type": "object",
            "description": "",
            "meta": [],
            "properties": [
              {
                "name": "messages",
                "type": "$$array",
                "description": "",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "System message",
                      "type": "object",
                      "description": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.\n",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestSystemMessage",
                        "canonical": "objects/ChatCompletionRequestSystemMessage",
                        "label": "ChatCompletionRequestSystemMessage"
                      },
                      "properties": [
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the system message.",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the system message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. For system messages, only type `text` is supported.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "object",
                                    "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "text"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text content.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestSystemMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestSystemMessageContentPart",
                                  "label": "ChatCompletionRequestSystemMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestSystemMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestSystemMessageContentPart",
                                "label": "ChatCompletionRequestSystemMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `system`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "system"
                            }
                          ],
                          "properties": [
                            {
                              "name": "system",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "User message",
                      "type": "object",
                      "description": "Messages sent by an end user, containing prompts or additional context\ninformation.\n",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestUserMessage",
                        "canonical": "objects/ChatCompletionRequestUserMessage",
                        "label": "ChatCompletionRequestUserMessage"
                      },
                      "properties": [
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the user message.\n",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The text contents of the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text, image, or audio inputs.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "object",
                                    "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "text"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text content.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Image content part",
                                    "type": "object",
                                    "description": "Learn about [image inputs](/docs/guides/vision).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartImage",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartImage",
                                      "label": "ChatCompletionRequestMessageContentPartImage"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "image_url"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "image_url",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "image_url",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "url",
                                            "type": "string",
                                            "description": "Either a URL of the image or the base64 encoded image data.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "detail",
                                            "type": "$$enum",
                                            "description": "Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).",
                                            "meta": [
                                              {
                                                "name": "defaults",
                                                "value": "auto"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "auto",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "low",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "high",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Audio content part",
                                    "type": "object",
                                    "description": "Learn about [audio inputs](/docs/guides/audio).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartAudio",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartAudio",
                                      "label": "ChatCompletionRequestMessageContentPartAudio"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part. Always `input_audio`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "input_audio"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "input_audio",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "input_audio",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "data",
                                            "type": "string",
                                            "description": "Base64 encoded audio data.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "format",
                                            "type": "$$enum",
                                            "description": "The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".\n",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "wav",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "mp3",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "File content part",
                                    "type": "object",
                                    "description": "Learn about [file inputs](/docs/guides/text) for text generation.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartFile",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartFile",
                                      "label": "ChatCompletionRequestMessageContentPartFile"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part. Always `file`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "file",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "filename",
                                            "type": "string",
                                            "description": "The name of the file, used when passing the file to the model as a \nstring.\n",
                                            "meta": []
                                          },
                                          {
                                            "name": "file_data",
                                            "type": "string",
                                            "description": "The base64 encoded file data, used when passing the file to the model \nas a string.\n",
                                            "meta": []
                                          },
                                          {
                                            "name": "file_id",
                                            "type": "string",
                                            "description": "The ID of an uploaded file to use as input.\n",
                                            "meta": []
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestUserMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestUserMessageContentPart",
                                  "label": "ChatCompletionRequestUserMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestUserMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestUserMessageContentPart",
                                "label": "ChatCompletionRequestUserMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `user`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "user"
                            }
                          ],
                          "properties": [
                            {
                              "name": "user",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "",
                      "type": "object",
                      "description": "",
                      "properties": [
                        {
                          "name": "weight",
                          "type": "$$enum",
                          "description": "Controls whether the assistant message is trained against (0 or 1)",
                          "meta": [
                            {
                              "name": "enum-type",
                              "value": "integer"
                            }
                          ],
                          "properties": [
                            {
                              "name": "0",
                              "type": "integer",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "1",
                              "type": "integer",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "integer"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the assistant message.",
                              "meta": []
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. Can be one or more of type `text`, or exactly one of type `refusal`.",
                              "meta": [],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "object",
                                    "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "text"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text content.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Refusal content part",
                                    "type": "object",
                                    "description": "",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartRefusal",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartRefusal",
                                      "label": "ChatCompletionRequestMessageContentPartRefusal"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "refusal"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "refusal",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "The refusal message generated by the model.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                                  "label": "ChatCompletionRequestAssistantMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                                "label": "ChatCompletionRequestAssistantMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "refusal",
                          "type": "string",
                          "description": "The refusal message by the assistant.",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `assistant`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "assistant"
                            }
                          ],
                          "properties": [
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                          "meta": []
                        },
                        {
                          "name": "audio",
                          "type": "object",
                          "description": "Data about a previous audio response from the model. \n[Learn more](/docs/guides/audio).\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "id",
                              "type": "string",
                              "description": "Unique identifier for a previous audio response from the model.\n",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "tool_calls",
                          "type": "$$array",
                          "description": "The tool calls generated by the model, such as function calls.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "",
                              "type": "object",
                              "description": "",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionMessageToolCall",
                                "canonical": "objects/ChatCompletionMessageToolCall",
                                "label": "ChatCompletionMessageToolCall"
                              },
                              "properties": [
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The ID of the tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of the tool. Currently, only `function` is supported.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "function"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "function",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "function",
                                  "type": "object",
                                  "description": "The function that the model called.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "name",
                                      "type": "string",
                                      "description": "The name of the function to call.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "arguments",
                                      "type": "string",
                                      "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                            "canonical": "objects/ChatCompletionMessageToolCalls",
                            "label": "ChatCompletionMessageToolCalls"
                          }
                        },
                        {
                          "name": "function_call",
                          "type": "object",
                          "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                          "meta": [
                            {
                              "name": "deprecated",
                              "value": "true"
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "arguments",
                              "type": "string",
                              "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/FineTuneChatCompletionRequestAssistantMessage",
                        "canonical": "objects/FineTuneChatCompletionRequestAssistantMessage",
                        "label": "FineTuneChatCompletionRequestAssistantMessage"
                      }
                    },
                    {
                      "name": "Tool message",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestToolMessage",
                        "canonical": "objects/ChatCompletionRequestToolMessage",
                        "label": "ChatCompletionRequestToolMessage"
                      },
                      "properties": [
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `tool`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "tool"
                            }
                          ],
                          "properties": [
                            {
                              "name": "tool",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "The contents of the tool message.",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The contents of the tool message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type. For tool messages, only type `text` is supported.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Text content part",
                                    "type": "object",
                                    "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                      "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                      "label": "ChatCompletionRequestMessageContentPartText"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "text"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text content.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestToolMessageContentPart",
                                  "canonical": "objects/ChatCompletionRequestToolMessageContentPart",
                                  "label": "ChatCompletionRequestToolMessageContentPart"
                                }
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/ChatCompletionRequestToolMessageContentPart",
                                "canonical": "objects/ChatCompletionRequestToolMessageContentPart",
                                "label": "ChatCompletionRequestToolMessageContentPart"
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "tool_call_id",
                          "type": "string",
                          "description": "Tool call that this message is responding to.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function message",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "deprecated",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionRequestFunctionMessage",
                        "canonical": "objects/ChatCompletionRequestFunctionMessage",
                        "label": "ChatCompletionRequestFunctionMessage"
                      },
                      "properties": [
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the messages author, in this case `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "string",
                          "description": "The contents of the function message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "A list of tools the model may generate JSON inputs for.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool. Currently, only `function` is supported.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "function",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionObject",
                        "canonical": "objects/FunctionObject",
                        "label": "FunctionObject"
                      },
                      "properties": [
                        {
                          "name": "description",
                          "type": "string",
                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                          "meta": []
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "object",
                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionParameters",
                            "canonical": "objects/FunctionParameters",
                            "label": "FunctionParameters"
                          }
                        },
                        {
                          "name": "strict",
                          "type": "boolean",
                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": false
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionTool",
                    "canonical": "objects/ChatCompletionTool",
                    "label": "ChatCompletionTool"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionTool",
                  "canonical": "objects/ChatCompletionTool",
                  "label": "ChatCompletionTool"
                }
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": true
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ParallelToolCalls",
                  "canonical": "objects/ParallelToolCalls",
                  "label": "ParallelToolCalls"
                }
              }
            ]
          },
          {
            "name": "preferred_completion",
            "type": "$$array",
            "description": "The preferred completion message for the output.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "Assistant message",
                  "type": "object",
                  "description": "Messages sent by the model in response to user messages.\n",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestAssistantMessage",
                    "canonical": "objects/ChatCompletionRequestAssistantMessage",
                    "label": "ChatCompletionRequestAssistantMessage"
                  },
                  "properties": [
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The contents of the assistant message.",
                          "meta": []
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type. Can be one or more of type `text`, or exactly one of type `refusal`.",
                          "meta": [],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Text content part",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Refusal content part",
                                "type": "object",
                                "description": "",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartRefusal",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartRefusal",
                                  "label": "ChatCompletionRequestMessageContentPartRefusal"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal message generated by the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                              "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                              "label": "ChatCompletionRequestAssistantMessageContentPart"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                            "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                            "label": "ChatCompletionRequestAssistantMessageContentPart"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "refusal",
                      "type": "string",
                      "description": "The refusal message by the assistant.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `assistant`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "assistant"
                        }
                      ],
                      "properties": [
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "object",
                      "description": "Data about a previous audio response from the model. \n[Learn more](/docs/guides/audio).\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "Unique identifier for a previous audio response from the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "tool_calls",
                      "type": "$$array",
                      "description": "The tool calls generated by the model, such as function calls.",
                      "meta": [],
                      "properties": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                        "canonical": "objects/ChatCompletionMessageToolCalls",
                        "label": "ChatCompletionMessageToolCalls"
                      },
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the tool call.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the tool. Currently, only `function` is supported.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "function"
                              }
                            ],
                            "properties": [
                              {
                                "name": "function",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "function",
                            "type": "object",
                            "description": "The function that the model called.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "name",
                                "type": "string",
                                "description": "The name of the function to call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "arguments",
                                "type": "string",
                                "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionMessageToolCall",
                          "canonical": "objects/ChatCompletionMessageToolCall",
                          "label": "ChatCompletionMessageToolCall"
                        }
                      }
                    },
                    {
                      "name": "function_call",
                      "type": "object",
                      "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                      "meta": [
                        {
                          "name": "deprecated",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "non_preferred_completion",
            "type": "$$array",
            "description": "The non-preferred completion message for the output.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "Assistant message",
                  "type": "object",
                  "description": "Messages sent by the model in response to user messages.\n",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/ChatCompletionRequestAssistantMessage",
                    "canonical": "objects/ChatCompletionRequestAssistantMessage",
                    "label": "ChatCompletionRequestAssistantMessage"
                  },
                  "properties": [
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.\n",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The contents of the assistant message.",
                          "meta": []
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type. Can be one or more of type `text`, or exactly one of type `refusal`.",
                          "meta": [],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Text content part",
                                "type": "object",
                                "description": "Learn about [text inputs](/docs/guides/text-generation).\n",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartText",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartText",
                                  "label": "ChatCompletionRequestMessageContentPartText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text content.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Refusal content part",
                                "type": "object",
                                "description": "",
                                "meta": [],
                                "symbolDef": {
                                  "id": "#/components/schemas/ChatCompletionRequestMessageContentPartRefusal",
                                  "canonical": "objects/ChatCompletionRequestMessageContentPartRefusal",
                                  "label": "ChatCompletionRequestMessageContentPartRefusal"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "refusal"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "refusal",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "refusal",
                                    "type": "string",
                                    "description": "The refusal message generated by the model.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                              "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                              "label": "ChatCompletionRequestAssistantMessageContentPart"
                            }
                          },
                          "symbolDef": {
                            "id": "#/components/schemas/ChatCompletionRequestAssistantMessageContentPart",
                            "canonical": "objects/ChatCompletionRequestAssistantMessageContentPart",
                            "label": "ChatCompletionRequestAssistantMessageContentPart"
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "refusal",
                      "type": "string",
                      "description": "The refusal message by the assistant.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the messages author, in this case `assistant`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "assistant"
                        }
                      ],
                      "properties": [
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.",
                      "meta": []
                    },
                    {
                      "name": "audio",
                      "type": "object",
                      "description": "Data about a previous audio response from the model. \n[Learn more](/docs/guides/audio).\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "Unique identifier for a previous audio response from the model.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "tool_calls",
                      "type": "$$array",
                      "description": "The tool calls generated by the model, such as function calls.",
                      "meta": [],
                      "properties": [],
                      "symbolDef": {
                        "id": "#/components/schemas/ChatCompletionMessageToolCalls",
                        "canonical": "objects/ChatCompletionMessageToolCalls",
                        "label": "ChatCompletionMessageToolCalls"
                      },
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The ID of the tool call.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of the tool. Currently, only `function` is supported.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "function"
                              }
                            ],
                            "properties": [
                              {
                                "name": "function",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "function",
                            "type": "object",
                            "description": "The function that the model called.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "name",
                                "type": "string",
                                "description": "The name of the function to call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "arguments",
                                "type": "string",
                                "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ChatCompletionMessageToolCall",
                          "canonical": "objects/ChatCompletionMessageToolCall",
                          "label": "ChatCompletionMessageToolCall"
                        }
                      }
                    },
                    {
                      "name": "function_call",
                      "type": "object",
                      "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.",
                      "meta": [
                        {
                          "name": "deprecated",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "arguments",
                          "type": "string",
                          "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": []
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTunePreferenceRequestInput",
          "canonical": "objects/FineTunePreferenceRequestInput",
          "label": "FineTunePreferenceRequestInput"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"input\": {\n    \"messages\": [\n      { \"role\": \"user\", \"content\": \"What is the weather in San Francisco?\" }\n    ]\n  },\n  \"preferred_completion\": [\n    {\n      \"role\": \"assistant\",\n      \"content\": \"The weather in San Francisco is 70 degrees Fahrenheit.\"\n    }\n  ],\n  \"non_preferred_completion\": [\n    {\n      \"role\": \"assistant\",\n      \"content\": \"The weather in San Francisco is 21 degrees Celsius.\"\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTunePreferenceRequestInput",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "Training format for completions models",
    "description": "The per-line training example of a fine-tuning input file for completions models",
    "canonical": "fine-tuning/completions-input",
    "definitions": [
      {
        "title": "FineTuneCompletionRequestInput",
        "properties": [
          {
            "name": "prompt",
            "type": "string",
            "description": "The input prompt for this training example.",
            "meta": []
          },
          {
            "name": "completion",
            "type": "string",
            "description": "The desired completion for this training example.",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTuneCompletionRequestInput",
          "canonical": "objects/FineTuneCompletionRequestInput",
          "label": "FineTuneCompletionRequestInput"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"prompt\": \"What is the answer to 2+2\",\n  \"completion\": \"4\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTuneCompletionRequestInput",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "The fine-tuning job object",
    "description": "The `fine_tuning.job` object represents a fine-tuning job that has been created through the API.\n",
    "canonical": "fine-tuning/object",
    "definitions": [
      {
        "title": "FineTuningJob",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The object identifier, which can be referenced in the API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the fine-tuning job was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "error",
            "type": "object",
            "description": "For fine-tuning jobs that have `failed`, this will contain more information on the cause of the failure.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code",
                "type": "string",
                "description": "A machine-readable error code.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable error message.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "param",
                "type": "string",
                "description": "The parameter that was invalid, usually `training_file` or `validation_file`. This field will be null if the failure was not parameter-specific.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "fine_tuned_model",
            "type": "string",
            "description": "The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "finished_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "hyperparameters",
            "type": "object",
            "description": "The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "batch_size",
                "type": "$$xor",
                "description": "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.\n",
                "properties": [
                  {
                    "name": "batch_size",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "batch_size",
                    "type": "integer",
                    "description": "",
                    "meta": [
                      {
                        "name": "maximum",
                        "value": 256
                      },
                      {
                        "name": "minimum",
                        "value": 1
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              },
              {
                "name": "learning_rate_multiplier",
                "type": "$$xor",
                "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.\n",
                "properties": [
                  {
                    "name": "learning_rate_multiplier",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "learning_rate_multiplier",
                    "type": "number",
                    "description": "",
                    "meta": [
                      {
                        "name": "minimum",
                        "value": 0
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              },
              {
                "name": "n_epochs",
                "type": "$$xor",
                "description": "The number of epochs to train the model for. An epoch refers to one full cycle\nthrough the training dataset.\n",
                "properties": [
                  {
                    "name": "n_epochs",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "n_epochs",
                    "type": "integer",
                    "description": "",
                    "meta": [
                      {
                        "name": "maximum",
                        "value": 50
                      },
                      {
                        "name": "minimum",
                        "value": 1
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "defaults",
                    "value": "auto"
                  }
                ]
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The base model that is being fine-tuned.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"fine_tuning.job\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "fine_tuning.job"
              }
            ],
            "properties": [
              {
                "name": "fine_tuning.job",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "organization_id",
            "type": "string",
            "description": "The organization that owns the fine-tuning job.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "result_files",
            "type": "$$array",
            "description": "The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                },
                {
                  "name": "example",
                  "value": "file-abc123"
                }
              ]
            }
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "validating_files",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "queued",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "running",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "succeeded",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "trained_tokens",
            "type": "integer",
            "description": "The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "training_file",
            "type": "string",
            "description": "The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "validation_file",
            "type": "string",
            "description": "The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "integrations",
            "type": "$$array",
            "description": "A list of integrations to enable for this fine-tuning job.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "Fine-Tuning Job Integration",
                  "type": "object",
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/FineTuningIntegration",
                    "canonical": "objects/FineTuningIntegration",
                    "label": "FineTuningIntegration"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the integration being enabled for the fine-tuning job",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "wandb"
                        }
                      ],
                      "properties": [
                        {
                          "name": "wandb",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "wandb",
                      "type": "object",
                      "description": "The settings for your integration with Weights and Biases. This payload specifies the project that\nmetrics will be sent to. Optionally, you can set an explicit display name for your run, add tags\nto your run, and set a default entity (team, username, etc) to be associated with your run.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "project",
                          "type": "string",
                          "description": "The name of the project that the new run will be created under.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "example",
                              "value": "my-wandb-project"
                            }
                          ]
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "A display name to set for the run. If not set, we will use the Job ID as the name.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "entity",
                          "type": "string",
                          "description": "The entity to use for the run. This allows you to set the team or username of the WandB user that you would\nlike associated with the run. If not set, the default entity for the registered WandB API key is used.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "tags",
                          "type": "$$array",
                          "description": "A list of tags to be attached to the newly created run. These tags are passed through directly to WandB. Some\ndefault tags are generated by OpenAI: \"openai/finetune\", \"openai/{base-model}\", \"openai/{ftjob-abcdef}\".\n",
                          "meta": [],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "string",
                            "properties": [],
                            "description": "",
                            "meta": [
                              {
                                "name": "example",
                                "value": "custom-tag"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "seed",
            "type": "integer",
            "description": "The seed used for the fine-tuning job.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "estimated_finish",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "method",
            "type": "object",
            "description": "The method used for fine-tuning.",
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/FineTuneMethod",
              "canonical": "objects/FineTuneMethod",
              "label": "FineTuneMethod"
            },
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of method. Is either `supervised` or `dpo`.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "supervised",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "dpo",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "supervised",
                "type": "object",
                "description": "Configuration for the supervised fine-tuning method.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/FineTuneSupervisedMethod",
                  "canonical": "objects/FineTuneSupervisedMethod",
                  "label": "FineTuneSupervisedMethod"
                },
                "properties": [
                  {
                    "name": "hyperparameters",
                    "type": "object",
                    "description": "The hyperparameters used for the fine-tuning job.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "batch_size",
                        "type": "$$xor",
                        "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n",
                        "properties": [
                          {
                            "name": "batch_size",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "batch_size",
                            "type": "integer",
                            "description": "",
                            "meta": [
                              {
                                "name": "maximum",
                                "value": 256
                              },
                              {
                                "name": "minimum",
                                "value": 1
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      },
                      {
                        "name": "learning_rate_multiplier",
                        "type": "$$xor",
                        "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n",
                        "properties": [
                          {
                            "name": "learning_rate_multiplier",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "learning_rate_multiplier",
                            "type": "number",
                            "description": "",
                            "meta": [
                              {
                                "name": "minimum",
                                "value": 0
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      },
                      {
                        "name": "n_epochs",
                        "type": "$$xor",
                        "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n",
                        "properties": [
                          {
                            "name": "n_epochs",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "n_epochs",
                            "type": "integer",
                            "description": "",
                            "meta": [
                              {
                                "name": "maximum",
                                "value": 50
                              },
                              {
                                "name": "minimum",
                                "value": 1
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "dpo",
                "type": "object",
                "description": "Configuration for the DPO fine-tuning method.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/FineTuneDPOMethod",
                  "canonical": "objects/FineTuneDPOMethod",
                  "label": "FineTuneDPOMethod"
                },
                "properties": [
                  {
                    "name": "hyperparameters",
                    "type": "object",
                    "description": "The hyperparameters used for the fine-tuning job.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "beta",
                        "type": "$$xor",
                        "description": "The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.\n",
                        "properties": [
                          {
                            "name": "beta",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "beta",
                            "type": "number",
                            "description": "",
                            "meta": [
                              {
                                "name": "maximum",
                                "value": 2
                              },
                              {
                                "name": "minimum",
                                "value": 0
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      },
                      {
                        "name": "batch_size",
                        "type": "$$xor",
                        "description": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.\n",
                        "properties": [
                          {
                            "name": "batch_size",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "batch_size",
                            "type": "integer",
                            "description": "",
                            "meta": [
                              {
                                "name": "maximum",
                                "value": 256
                              },
                              {
                                "name": "minimum",
                                "value": 1
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      },
                      {
                        "name": "learning_rate_multiplier",
                        "type": "$$xor",
                        "description": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.\n",
                        "properties": [
                          {
                            "name": "learning_rate_multiplier",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "learning_rate_multiplier",
                            "type": "number",
                            "description": "",
                            "meta": [
                              {
                                "name": "minimum",
                                "value": 0
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      },
                      {
                        "name": "n_epochs",
                        "type": "$$xor",
                        "description": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.\n",
                        "properties": [
                          {
                            "name": "n_epochs",
                            "type": "$$enum",
                            "description": "",
                            "meta": [
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "auto"
                              }
                            ],
                            "properties": [
                              {
                                "name": "auto",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "n_epochs",
                            "type": "integer",
                            "description": "",
                            "meta": [
                              {
                                "name": "maximum",
                                "value": 50
                              },
                              {
                                "name": "minimum",
                                "value": 1
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "defaults",
                            "value": "auto"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTuningJob",
          "canonical": "objects/FineTuningJob",
          "label": "fine_tuning.job"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job\",\n  \"id\": \"ftjob-abc123\",\n  \"model\": \"davinci-002\",\n  \"created_at\": 1692661014,\n  \"finished_at\": 1692661190,\n  \"fine_tuned_model\": \"ft:davinci-002:my-org:custom_suffix:7q8mpxmy\",\n  \"organization_id\": \"org-123\",\n  \"result_files\": [\n      \"file-abc123\"\n  ],\n  \"status\": \"succeeded\",\n  \"validation_file\": null,\n  \"training_file\": \"file-abc123\",\n  \"hyperparameters\": {\n      \"n_epochs\": 4,\n      \"batch_size\": 1,\n      \"learning_rate_multiplier\": 1.0\n  },\n  \"trained_tokens\": 5768,\n  \"integrations\": [],\n  \"seed\": 0,\n  \"estimated_finish\": 0,\n  \"method\": {\n    \"type\": \"supervised\",\n    \"supervised\": {\n      \"hyperparameters\": {\n        \"n_epochs\": 4,\n        \"batch_size\": 1,\n        \"learning_rate_multiplier\": 1.0\n      }\n    }\n  },\n  \"metadata\": {\n    \"key\": \"value\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTuningJob",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "The fine-tuning job event object",
    "description": "Fine-tuning job event object",
    "canonical": "fine-tuning/event-object",
    "definitions": [
      {
        "title": "FineTuningJobEvent",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"fine_tuning.job.event\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "fine_tuning.job.event"
              }
            ],
            "properties": [
              {
                "name": "fine_tuning.job.event",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The object identifier.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the fine-tuning job was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "level",
            "type": "$$enum",
            "description": "The log level of the event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "info",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "warn",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "error",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "message",
            "type": "string",
            "description": "The message of the event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of event.",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "message",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "metrics",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "data",
            "type": "object",
            "description": "The data associated with the event.",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTuningJobEvent",
          "canonical": "objects/FineTuningJobEvent",
          "label": "fine_tuning.job.event"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job.event\",\n  \"id\": \"ftevent-abc123\"\n  \"created_at\": 1677610602,\n  \"level\": \"info\",\n  \"message\": \"Created fine-tuning job\",\n  \"data\": {},\n  \"type\": \"message\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTuningJobEvent",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "The fine-tuning job checkpoint object",
    "description": "The `fine_tuning.job.checkpoint` object represents a model checkpoint for a fine-tuning job that is ready to use.\n",
    "canonical": "fine-tuning/checkpoint-object",
    "definitions": [
      {
        "title": "FineTuningJobCheckpoint",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The checkpoint identifier, which can be referenced in the API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the checkpoint was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "fine_tuned_model_checkpoint",
            "type": "string",
            "description": "The name of the fine-tuned checkpoint model that is created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "step_number",
            "type": "integer",
            "description": "The step number that the checkpoint was created at.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "metrics",
            "type": "object",
            "description": "Metrics at the step number during the fine-tuning job.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "step",
                "type": "number",
                "description": "",
                "meta": []
              },
              {
                "name": "train_loss",
                "type": "number",
                "description": "",
                "meta": []
              },
              {
                "name": "train_mean_token_accuracy",
                "type": "number",
                "description": "",
                "meta": []
              },
              {
                "name": "valid_loss",
                "type": "number",
                "description": "",
                "meta": []
              },
              {
                "name": "valid_mean_token_accuracy",
                "type": "number",
                "description": "",
                "meta": []
              },
              {
                "name": "full_valid_loss",
                "type": "number",
                "description": "",
                "meta": []
              },
              {
                "name": "full_valid_mean_token_accuracy",
                "type": "number",
                "description": "",
                "meta": []
              }
            ]
          },
          {
            "name": "fine_tuning_job_id",
            "type": "string",
            "description": "The name of the fine-tuning job that this checkpoint was created from.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"fine_tuning.job.checkpoint\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "fine_tuning.job.checkpoint"
              }
            ],
            "properties": [
              {
                "name": "fine_tuning.job.checkpoint",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTuningJobCheckpoint",
          "canonical": "objects/FineTuningJobCheckpoint",
          "label": "fine_tuning.job.checkpoint"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"fine_tuning.job.checkpoint\",\n  \"id\": \"ftckpt_qtZ5Gyk4BLq1SfLFWp3RtO3P\",\n  \"created_at\": 1712211699,\n  \"fine_tuned_model_checkpoint\": \"ft:gpt-4o-mini-2024-07-18:my-org:custom_suffix:9ABel2dg:ckpt-step-88\",\n  \"fine_tuning_job_id\": \"ftjob-fpbNQ3H1GrMehXRf8cO97xTN\",\n  \"metrics\": {\n    \"step\": 88,\n    \"train_loss\": 0.478,\n    \"train_mean_token_accuracy\": 0.924,\n    \"valid_loss\": 10.112,\n    \"valid_mean_token_accuracy\": 0.145,\n    \"full_valid_loss\": 0.567,\n    \"full_valid_mean_token_accuracy\": 0.944\n  },\n  \"step_number\": 88\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTuningJobCheckpoint",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "The fine-tuned model checkpoint permission object",
    "description": "The `checkpoint.permission` object represents a permission for a fine-tuned model checkpoint.\n",
    "canonical": "fine-tuning/permission-object",
    "definitions": [
      {
        "title": "FineTuningCheckpointPermission",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The permission identifier, which can be referenced in the API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the permission was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "The project identifier that the permission is for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"checkpoint.permission\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "checkpoint.permission"
              }
            ],
            "properties": [
              {
                "name": "checkpoint.permission",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/FineTuningCheckpointPermission",
          "canonical": "objects/FineTuningCheckpointPermission",
          "label": "checkpoint.permission"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"checkpoint.permission\",\n  \"id\": \"cp_zc4Q7MP6XxulcVzj4MZdwsAB\",\n  \"created_at\": 1712211699,\n  \"project_id\": \"proj_abGMw1llN8IrBb6SvvY5A1iH\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "FineTuningCheckpointPermission",
      "group": [
        "Platform APIs",
        "Fine-tuning"
      ]
    }
  },
  {
    "title": "Create batch",
    "canonical": "batch/create",
    "description": "Creates and executes a batch from an uploaded file of requests",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/batches",
      "group": [
        "Platform APIs",
        "Batch"
      ],
      "fullPath": "https://api.openai.com/v1/batches",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/batches \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"input_file_id\": \"file-abc123\",\n    \"endpoint\": \"/v1/chat/completions\",\n    \"completion_window\": \"24h\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.batches.create(\n  input_file_id=\"file-abc123\",\n  endpoint=\"/v1/chat/completions\",\n  completion_window=\"24h\"\n)\n"
                  },
                  {
                    "title": "node",
                    "language": "node",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const batch = await openai.batches.create({\n    input_file_id: \"file-abc123\",\n    endpoint: \"/v1/chat/completions\",\n    completion_window: \"24h\"\n  });\n\n  console.log(batch);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"batch_abc123\",\n  \"object\": \"batch\",\n  \"endpoint\": \"/v1/chat/completions\",\n  \"errors\": null,\n  \"input_file_id\": \"file-abc123\",\n  \"completion_window\": \"24h\",\n  \"status\": \"validating\",\n  \"output_file_id\": null,\n  \"error_file_id\": null,\n  \"created_at\": 1711471533,\n  \"in_progress_at\": null,\n  \"expires_at\": null,\n  \"finalizing_at\": null,\n  \"completed_at\": null,\n  \"failed_at\": null,\n  \"expired_at\": null,\n  \"cancelling_at\": null,\n  \"cancelled_at\": null,\n  \"request_counts\": {\n    \"total\": 0,\n    \"completed\": 0,\n    \"failed\": 0\n  },\n  \"metadata\": {\n    \"customer_id\": \"user_123456789\",\n    \"batch_description\": \"Nightly eval job\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "input_file_id",
                "type": "string",
                "description": "The ID of an uploaded file that contains requests for the new batch.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "endpoint",
                "type": "$$enum",
                "description": "The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "/v1/responses",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "/v1/chat/completions",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "/v1/embeddings",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "/v1/completions",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "completion_window",
                "type": "$$enum",
                "description": "The time frame within which the batch should be processed. Currently only `24h` is supported.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "24h"
                  }
                ],
                "properties": [
                  {
                    "name": "24h",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [Batch](/docs/api-reference/batch/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve batch",
    "canonical": "batch/retrieve",
    "description": "Retrieves a batch.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/batches/{batch_id}",
      "group": [
        "Platform APIs",
        "Batch"
      ],
      "fullPath": "https://api.openai.com/v1/batches/{batch_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/batches/batch_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.batches.retrieve(\"batch_abc123\")\n"
                  },
                  {
                    "title": "node",
                    "language": "node",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const batch = await openai.batches.retrieve(\"batch_abc123\");\n\n  console.log(batch);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"batch_abc123\",\n  \"object\": \"batch\",\n  \"endpoint\": \"/v1/completions\",\n  \"errors\": null,\n  \"input_file_id\": \"file-abc123\",\n  \"completion_window\": \"24h\",\n  \"status\": \"completed\",\n  \"output_file_id\": \"file-cvaTdG\",\n  \"error_file_id\": \"file-HOWS94\",\n  \"created_at\": 1711471533,\n  \"in_progress_at\": 1711471538,\n  \"expires_at\": 1711557933,\n  \"finalizing_at\": 1711493133,\n  \"completed_at\": 1711493163,\n  \"failed_at\": null,\n  \"expired_at\": null,\n  \"cancelling_at\": null,\n  \"cancelled_at\": null,\n  \"request_counts\": {\n    \"total\": 100,\n    \"completed\": 95,\n    \"failed\": 5\n  },\n  \"metadata\": {\n    \"customer_id\": \"user_123456789\",\n    \"batch_description\": \"Nightly eval job\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "batch_id",
            "type": "string",
            "description": "The ID of the batch to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [Batch](/docs/api-reference/batch/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Cancel batch",
    "canonical": "batch/cancel",
    "description": "Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/batches/{batch_id}/cancel",
      "group": [
        "Platform APIs",
        "Batch"
      ],
      "fullPath": "https://api.openai.com/v1/batches/{batch_id}/cancel",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/batches/batch_abc123/cancel \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -X POST\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.batches.cancel(\"batch_abc123\")\n"
                  },
                  {
                    "title": "node",
                    "language": "node",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const batch = await openai.batches.cancel(\"batch_abc123\");\n\n  console.log(batch);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"batch_abc123\",\n  \"object\": \"batch\",\n  \"endpoint\": \"/v1/chat/completions\",\n  \"errors\": null,\n  \"input_file_id\": \"file-abc123\",\n  \"completion_window\": \"24h\",\n  \"status\": \"cancelling\",\n  \"output_file_id\": null,\n  \"error_file_id\": null,\n  \"created_at\": 1711471533,\n  \"in_progress_at\": 1711471538,\n  \"expires_at\": 1711557933,\n  \"finalizing_at\": null,\n  \"completed_at\": null,\n  \"failed_at\": null,\n  \"expired_at\": null,\n  \"cancelling_at\": 1711475133,\n  \"cancelled_at\": null,\n  \"request_counts\": {\n    \"total\": 100,\n    \"completed\": 23,\n    \"failed\": 1\n  },\n  \"metadata\": {\n    \"customer_id\": \"user_123456789\",\n    \"batch_description\": \"Nightly eval job\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "batch_id",
            "type": "string",
            "description": "The ID of the batch to cancel.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [Batch](/docs/api-reference/batch/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "List batch",
    "canonical": "batch/list",
    "description": "List your organization's batches.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/batches",
      "group": [
        "Platform APIs",
        "Batch"
      ],
      "fullPath": "https://api.openai.com/v1/batches",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/batches?limit=2 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.batches.list()\n"
                  },
                  {
                    "title": "node",
                    "language": "node",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const list = await openai.batches.list();\n\n  for await (const batch of list) {\n    console.log(batch);\n  }\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"batch_abc123\",\n      \"object\": \"batch\",\n      \"endpoint\": \"/v1/chat/completions\",\n      \"errors\": null,\n      \"input_file_id\": \"file-abc123\",\n      \"completion_window\": \"24h\",\n      \"status\": \"completed\",\n      \"output_file_id\": \"file-cvaTdG\",\n      \"error_file_id\": \"file-HOWS94\",\n      \"created_at\": 1711471533,\n      \"in_progress_at\": 1711471538,\n      \"expires_at\": 1711557933,\n      \"finalizing_at\": 1711493133,\n      \"completed_at\": 1711493163,\n      \"failed_at\": null,\n      \"expired_at\": null,\n      \"cancelling_at\": null,\n      \"cancelled_at\": null,\n      \"request_counts\": {\n        \"total\": 100,\n        \"completed\": 95,\n        \"failed\": 5\n      },\n      \"metadata\": {\n        \"customer_id\": \"user_123456789\",\n        \"batch_description\": \"Nightly job\",\n      }\n    },\n    { ... },\n  ],\n  \"first_id\": \"batch_abc123\",\n  \"last_id\": \"batch_abc456\",\n  \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated [Batch](/docs/api-reference/batch/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "The batch object",
    "description": "",
    "canonical": "batch/object",
    "definitions": [
      {
        "title": "Batch",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `batch`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "batch"
              }
            ],
            "properties": [
              {
                "name": "batch",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "endpoint",
            "type": "string",
            "description": "The OpenAI API endpoint used by the batch.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "errors",
            "type": "object",
            "description": "",
            "meta": [],
            "properties": [
              {
                "name": "object",
                "type": "string",
                "description": "The object type, which is always `list`.",
                "meta": []
              },
              {
                "name": "data",
                "type": "$$array",
                "description": "",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "code",
                      "type": "string",
                      "description": "An error code identifying the error type.",
                      "meta": []
                    },
                    {
                      "name": "message",
                      "type": "string",
                      "description": "A human-readable message providing more details about the error.",
                      "meta": []
                    },
                    {
                      "name": "param",
                      "type": "string",
                      "description": "The name of the parameter that caused the error, if applicable.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "line",
                      "type": "integer",
                      "description": "The line number of the input file where the error occurred, if applicable.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              }
            ]
          },
          {
            "name": "input_file_id",
            "type": "string",
            "description": "The ID of the input file for the batch.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "completion_window",
            "type": "string",
            "description": "The time frame within which the batch should be processed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The current status of the batch.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "validating",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "finalizing",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "expired",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelling",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "output_file_id",
            "type": "string",
            "description": "The ID of the file containing the outputs of successfully executed requests.",
            "meta": []
          },
          {
            "name": "error_file_id",
            "type": "string",
            "description": "The ID of the file containing the outputs of requests with errors.",
            "meta": []
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "in_progress_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch started processing.",
            "meta": []
          },
          {
            "name": "expires_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch will expire.",
            "meta": []
          },
          {
            "name": "finalizing_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch started finalizing.",
            "meta": []
          },
          {
            "name": "completed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch was completed.",
            "meta": []
          },
          {
            "name": "failed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch failed.",
            "meta": []
          },
          {
            "name": "expired_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch expired.",
            "meta": []
          },
          {
            "name": "cancelling_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch started cancelling.",
            "meta": []
          },
          {
            "name": "cancelled_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the batch was cancelled.",
            "meta": []
          },
          {
            "name": "request_counts",
            "type": "object",
            "description": "The request counts for different statuses within the batch.",
            "meta": [],
            "properties": [
              {
                "name": "total",
                "type": "integer",
                "description": "Total number of requests in the batch.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "completed",
                "type": "integer",
                "description": "Number of requests that have been completed successfully.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "failed",
                "type": "integer",
                "description": "Number of requests that have failed.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Batch",
          "canonical": "objects/Batch",
          "label": "batch"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"batch_abc123\",\n  \"object\": \"batch\",\n  \"endpoint\": \"/v1/completions\",\n  \"errors\": null,\n  \"input_file_id\": \"file-abc123\",\n  \"completion_window\": \"24h\",\n  \"status\": \"completed\",\n  \"output_file_id\": \"file-cvaTdG\",\n  \"error_file_id\": \"file-HOWS94\",\n  \"created_at\": 1711471533,\n  \"in_progress_at\": 1711471538,\n  \"expires_at\": 1711557933,\n  \"finalizing_at\": 1711493133,\n  \"completed_at\": 1711493163,\n  \"failed_at\": null,\n  \"expired_at\": null,\n  \"cancelling_at\": null,\n  \"cancelled_at\": null,\n  \"request_counts\": {\n    \"total\": 100,\n    \"completed\": 95,\n    \"failed\": 5\n  },\n  \"metadata\": {\n    \"customer_id\": \"user_123456789\",\n    \"batch_description\": \"Nightly eval job\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Batch",
      "group": [
        "Platform APIs",
        "Batch"
      ]
    }
  },
  {
    "title": "The request input object",
    "description": "The per-line object of the batch input file",
    "canonical": "batch/request-input",
    "definitions": [
      {
        "title": "BatchRequestInput",
        "properties": [
          {
            "name": "custom_id",
            "type": "string",
            "description": "A developer-provided per-request id that will be used to match outputs to inputs. Must be unique for each request in a batch.",
            "meta": []
          },
          {
            "name": "method",
            "type": "$$enum",
            "description": "The HTTP method to be used for the request. Currently only `POST` is supported.",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "POST"
              }
            ],
            "properties": [
              {
                "name": "POST",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "url",
            "type": "string",
            "description": "The OpenAI API relative URL to be used for the request. Currently `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported.",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/BatchRequestInput",
          "canonical": "objects/BatchRequestInput",
          "label": "BatchRequestInput"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\"custom_id\": \"request-1\", \"method\": \"POST\", \"url\": \"/v1/chat/completions\", \"body\": {\"model\": \"gpt-4o-mini\", \"messages\": [{\"role\": \"system\", \"content\": \"You are a helpful assistant.\"}, {\"role\": \"user\", \"content\": \"What is 2+2?\"}]}}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "BatchRequestInput",
      "group": [
        "Platform APIs",
        "Batch"
      ]
    }
  },
  {
    "title": "The request output object",
    "description": "The per-line object of the batch output and error files",
    "canonical": "batch/request-output",
    "definitions": [
      {
        "title": "BatchRequestOutput",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "",
            "meta": []
          },
          {
            "name": "custom_id",
            "type": "string",
            "description": "A developer-provided per-request id that will be used to match outputs to inputs.",
            "meta": []
          },
          {
            "name": "response",
            "type": "object",
            "description": "",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "status_code",
                "type": "integer",
                "description": "The HTTP status code of the response",
                "meta": []
              },
              {
                "name": "request_id",
                "type": "string",
                "description": "An unique identifier for the OpenAI API request. Please include this request ID when contacting support.",
                "meta": []
              },
              {
                "name": "body",
                "type": "object",
                "description": "The JSON body of the response",
                "meta": []
              }
            ]
          },
          {
            "name": "error",
            "type": "object",
            "description": "For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code",
                "type": "string",
                "description": "A machine-readable error code.",
                "meta": []
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable error message.",
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/BatchRequestOutput",
          "canonical": "objects/BatchRequestOutput",
          "label": "BatchRequestOutput"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\"id\": \"batch_req_wnaDys\", \"custom_id\": \"request-2\", \"response\": {\"status_code\": 200, \"request_id\": \"req_c187b3\", \"body\": {\"id\": \"chatcmpl-9758Iw\", \"object\": \"chat.completion\", \"created\": 1711475054, \"model\": \"gpt-4o-mini\", \"choices\": [{\"index\": 0, \"message\": {\"role\": \"assistant\", \"content\": \"2 + 2 equals 4.\"}, \"finish_reason\": \"stop\"}], \"usage\": {\"prompt_tokens\": 24, \"completion_tokens\": 15, \"total_tokens\": 39}, \"system_fingerprint\": null}}, \"error\": null}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "BatchRequestOutput",
      "group": [
        "Platform APIs",
        "Batch"
      ]
    }
  },
  {
    "title": "Upload file",
    "canonical": "files/create",
    "description": "Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.\n\nThe Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.\n\nThe Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.\n\nThe Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).\n\nPlease [contact us](https://help.openai.com/) if you need to increase these storage limits.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/files",
      "group": [
        "Platform APIs",
        "Files"
      ],
      "fullPath": "https://api.openai.com/v1/files",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/files \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -F purpose=\"fine-tune\" \\\n  -F file=\"@mydata.jsonl\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.files.create(\n  file=open(\"mydata.jsonl\", \"rb\"),\n  purpose=\"fine-tune\"\n)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import fs from \"fs\";\nimport OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const file = await openai.files.create({\n    file: fs.createReadStream(\"mydata.jsonl\"),\n    purpose: \"fine-tune\",\n  });\n\n  console.log(file);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"file\",\n  \"bytes\": 120000,\n  \"created_at\": 1677610602,\n  \"filename\": \"mydata.jsonl\",\n  \"purpose\": \"fine-tune\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "multipart/form-data",
            "description": "",
            "properties": [
              {
                "name": "file",
                "type": "string",
                "description": "The File object (not file name) to be uploaded.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "purpose",
                "type": "$$enum",
                "description": "The intended purpose of the uploaded file. One of: - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "assistants",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "batch",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "fine-tune",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "vision",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "user_data",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "evals",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "multipart/form-data"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateFileRequest",
              "canonical": "objects/CreateFileRequest",
              "label": "CreateFileRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The uploaded [File](/docs/api-reference/files/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List files",
    "canonical": "files/list",
    "description": "Returns a list of files.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/files",
      "group": [
        "Platform APIs",
        "Files"
      ],
      "fullPath": "https://api.openai.com/v1/files",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/files \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.files.list()\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const list = await openai.files.list();\n\n  for await (const file of list) {\n    console.log(file);\n  }\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"data\": [\n    {\n      \"id\": \"file-abc123\",\n      \"object\": \"file\",\n      \"bytes\": 175,\n      \"created_at\": 1613677385,\n      \"filename\": \"salesOverview.pdf\",\n      \"purpose\": \"assistants\",\n    },\n    {\n      \"id\": \"file-abc123\",\n      \"object\": \"file\",\n      \"bytes\": 140,\n      \"created_at\": 1613779121,\n      \"filename\": \"puppy.jsonl\",\n      \"purpose\": \"fine-tune\",\n    }\n  ],\n  \"object\": \"list\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "purpose",
            "type": "string",
            "description": "Only return files with the given purpose.",
            "meta": []
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 10000
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [File](/docs/api-reference/files/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve file",
    "canonical": "files/retrieve",
    "description": "Returns information about a specific file.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/files/{file_id}",
      "group": [
        "Platform APIs",
        "Files"
      ],
      "fullPath": "https://api.openai.com/v1/files/{file_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/files/file-abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.files.retrieve(\"file-abc123\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const file = await openai.files.retrieve(\"file-abc123\");\n\n  console.log(file);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"file\",\n  \"bytes\": 120000,\n  \"created_at\": 1677610602,\n  \"filename\": \"mydata.jsonl\",\n  \"purpose\": \"fine-tune\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file to use for this request.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [File](/docs/api-reference/files/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete file",
    "canonical": "files/delete",
    "description": "Delete a file.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/files/{file_id}",
      "group": [
        "Platform APIs",
        "Files"
      ],
      "fullPath": "https://api.openai.com/v1/files/{file_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/files/file-abc123 \\\n  -X DELETE \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.files.delete(\"file-abc123\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const file = await openai.files.del(\"file-abc123\");\n\n  console.log(file);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"file\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file to use for this request.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve file content",
    "canonical": "files/retrieve-contents",
    "description": "Returns the contents of the specified file.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/files/{file_id}/content",
      "group": [
        "Platform APIs",
        "Files"
      ],
      "fullPath": "https://api.openai.com/v1/files/{file_id}/content",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/files/file-abc123/content \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" > file.jsonl\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ncontent = client.files.content(\"file-abc123\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const file = await openai.files.content(\"file-abc123\");\n\n  console.log(file);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file to use for this request.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The file content.",
        "properties": []
      }
    ]
  },
  {
    "title": "The file object",
    "description": "The `File` object represents a document that has been uploaded to OpenAI.",
    "canonical": "files/object",
    "definitions": [
      {
        "title": "OpenAIFile",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The file identifier, which can be referenced in the API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "bytes",
            "type": "integer",
            "description": "The size of the file, in bytes.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the file was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "expires_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the file will expire.",
            "meta": []
          },
          {
            "name": "filename",
            "type": "string",
            "description": "The name of the file.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `file`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "file"
              }
            ],
            "properties": [
              {
                "name": "file",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "type": "$$enum",
            "description": "The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "assistants",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "assistants_output",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "batch",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "batch_output",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "fine-tune",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "fine-tune-results",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "vision",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "deprecated",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "uploaded",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "processed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "error",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "status_details",
            "type": "string",
            "description": "Deprecated. For details on why a fine-tuning training file failed validation, see the `error` field on `fine_tuning.job`.",
            "meta": [
              {
                "name": "deprecated",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/OpenAIFile",
          "canonical": "objects/OpenAIFile",
          "label": "file"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"file\",\n  \"bytes\": 120000,\n  \"created_at\": 1677610602,\n  \"expires_at\": 1680202602,\n  \"filename\": \"salesOverview.pdf\",\n  \"purpose\": \"assistants\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "OpenAIFile",
      "group": [
        "Platform APIs",
        "Files"
      ]
    }
  },
  {
    "title": "Create upload",
    "canonical": "uploads/create",
    "description": "Creates an intermediate [Upload](/docs/api-reference/uploads/object) object\nthat you can add [Parts](/docs/api-reference/uploads/part-object) to.\nCurrently, an Upload can accept at most 8 GB in total and expires after an\nhour after you create it.\n\nOnce you complete the Upload, we will create a\n[File](/docs/api-reference/files/object) object that contains all the parts\nyou uploaded. This File is usable in the rest of our platform as a regular\nFile object.\n\nFor certain `purpose` values, the correct `mime_type` must be specified. \nPlease refer to documentation for the \n[supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).\n\nFor guidance on the proper filename extensions for each purpose, please\nfollow the documentation on [creating a\nFile](/docs/api-reference/files/create).\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/uploads",
      "group": [
        "Platform APIs",
        "Uploads"
      ],
      "fullPath": "https://api.openai.com/v1/uploads",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/uploads \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"purpose\": \"fine-tune\",\n    \"filename\": \"training_examples.jsonl\",\n    \"bytes\": 2147483648,\n    \"mime_type\": \"text/jsonl\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"upload_abc123\",\n  \"object\": \"upload\",\n  \"bytes\": 2147483648,\n  \"created_at\": 1719184911,\n  \"filename\": \"training_examples.jsonl\",\n  \"purpose\": \"fine-tune\",\n  \"status\": \"pending\",\n  \"expires_at\": 1719127296\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "filename",
                "type": "string",
                "description": "The name of the file to upload.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "purpose",
                "type": "$$enum",
                "description": "The intended purpose of the uploaded file.\n\nSee the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose).\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "assistants",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "batch",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "fine-tune",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "vision",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "bytes",
                "type": "integer",
                "description": "The number of bytes in the file you are uploading.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "mime_type",
                "type": "string",
                "description": "The MIME type of the file.\n\nThis must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateUploadRequest",
              "canonical": "objects/CreateUploadRequest",
              "label": "CreateUploadRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The [Upload](/docs/api-reference/uploads/object) object with status `pending`.",
        "properties": []
      }
    ]
  },
  {
    "title": "Add upload part",
    "canonical": "uploads/add-part",
    "description": "Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload. \n\nEach Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n\nIt is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/uploads/{upload_id}/parts",
      "group": [
        "Platform APIs",
        "Uploads"
      ],
      "fullPath": "https://api.openai.com/v1/uploads/{upload_id}/parts",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/uploads/upload_abc123/parts\n  -F data=\"aHR0cHM6Ly9hcGkub3BlbmFpLmNvbS92MS91cGxvYWRz...\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"part_def456\",\n  \"object\": \"upload.part\",\n  \"created_at\": 1719185911,\n  \"upload_id\": \"upload_abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "upload_id",
            "type": "string",
            "description": "The ID of the Upload.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "upload_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "multipart/form-data",
            "description": "",
            "properties": [
              {
                "name": "data",
                "type": "string",
                "description": "The chunk of bytes for this Part.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "multipart/form-data"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/AddUploadPartRequest",
              "canonical": "objects/AddUploadPartRequest",
              "label": "AddUploadPartRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The upload [Part](/docs/api-reference/uploads/part-object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Complete upload",
    "canonical": "uploads/complete",
    "description": "Completes the [Upload](/docs/api-reference/uploads/object). \n\nWithin the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n\nYou can specify the order of the Parts by passing in an ordered list of the Part IDs.\n\nThe number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/uploads/{upload_id}/complete",
      "group": [
        "Platform APIs",
        "Uploads"
      ],
      "fullPath": "https://api.openai.com/v1/uploads/{upload_id}/complete",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/uploads/upload_abc123/complete\n  -d '{\n    \"part_ids\": [\"part_def456\", \"part_ghi789\"]\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"upload_abc123\",\n  \"object\": \"upload\",\n  \"bytes\": 2147483648,\n  \"created_at\": 1719184911,\n  \"filename\": \"training_examples.jsonl\",\n  \"purpose\": \"fine-tune\",\n  \"status\": \"completed\",\n  \"expires_at\": 1719127296,\n  \"file\": {\n    \"id\": \"file-xyz321\",\n    \"object\": \"file\",\n    \"bytes\": 2147483648,\n    \"created_at\": 1719186911,\n    \"filename\": \"training_examples.jsonl\",\n    \"purpose\": \"fine-tune\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "upload_id",
            "type": "string",
            "description": "The ID of the Upload.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "upload_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "part_ids",
                "type": "$$array",
                "description": "The ordered list of Part IDs.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              },
              {
                "name": "md5",
                "type": "string",
                "description": "The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.\n",
                "meta": []
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CompleteUploadRequest",
              "canonical": "objects/CompleteUploadRequest",
              "label": "CompleteUploadRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The [Upload](/docs/api-reference/uploads/object) object with status `completed` with an additional `file` property containing the created usable File object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Cancel upload",
    "canonical": "uploads/cancel",
    "description": "Cancels the Upload. No Parts may be added after an Upload is cancelled.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/uploads/{upload_id}/cancel",
      "group": [
        "Platform APIs",
        "Uploads"
      ],
      "fullPath": "https://api.openai.com/v1/uploads/{upload_id}/cancel",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/uploads/upload_abc123/cancel\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"upload_abc123\",\n  \"object\": \"upload\",\n  \"bytes\": 2147483648,\n  \"created_at\": 1719184911,\n  \"filename\": \"training_examples.jsonl\",\n  \"purpose\": \"fine-tune\",\n  \"status\": \"cancelled\",\n  \"expires_at\": 1719127296\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "upload_id",
            "type": "string",
            "description": "The ID of the Upload.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "upload_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [Upload](/docs/api-reference/uploads/object) object with status `cancelled`.",
        "properties": []
      }
    ]
  },
  {
    "title": "The upload object",
    "description": "The Upload object can accept byte chunks in the form of Parts.\n",
    "canonical": "uploads/object",
    "definitions": [
      {
        "title": "Upload",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The Upload unique identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the Upload was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "filename",
            "type": "string",
            "description": "The name of the file to be uploaded.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "bytes",
            "type": "integer",
            "description": "The intended number of bytes to be uploaded.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "purpose",
            "type": "string",
            "description": "The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the Upload.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "pending",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "expired",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "expires_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the Upload will expire.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"upload\".",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "upload"
              }
            ],
            "properties": [
              {
                "name": "upload",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "file",
            "type": "object",
            "description": "The ready File object after the Upload is completed.",
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The file identifier, which can be referenced in the API endpoints.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "bytes",
                "type": "integer",
                "description": "The size of the file, in bytes.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "created_at",
                "type": "integer",
                "description": "The Unix timestamp (in seconds) for when the file was created.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "expires_at",
                "type": "integer",
                "description": "The Unix timestamp (in seconds) for when the file will expire.",
                "meta": []
              },
              {
                "name": "filename",
                "type": "string",
                "description": "The name of the file.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "object",
                "type": "$$enum",
                "description": "The object type, which is always `file`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "file"
                  }
                ],
                "properties": [
                  {
                    "name": "file",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "purpose",
                "type": "$$enum",
                "description": "The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "assistants",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistants_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "batch",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "batch_output",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "fine-tune",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "fine-tune-results",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "vision",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status",
                "type": "$$enum",
                "description": "Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "deprecated",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "uploaded",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "processed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "error",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "status_details",
                "type": "string",
                "description": "Deprecated. For details on why a fine-tuning training file failed validation, see the `error` field on `fine_tuning.job`.",
                "meta": [
                  {
                    "name": "deprecated",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/OpenAIFile",
              "canonical": "objects/OpenAIFile",
              "label": "file"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Upload",
          "canonical": "objects/Upload",
          "label": "upload"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"upload_abc123\",\n  \"object\": \"upload\",\n  \"bytes\": 2147483648,\n  \"created_at\": 1719184911,\n  \"filename\": \"training_examples.jsonl\",\n  \"purpose\": \"fine-tune\",\n  \"status\": \"completed\",\n  \"expires_at\": 1719127296,\n  \"file\": {\n    \"id\": \"file-xyz321\",\n    \"object\": \"file\",\n    \"bytes\": 2147483648,\n    \"created_at\": 1719186911,\n    \"filename\": \"training_examples.jsonl\",\n    \"purpose\": \"fine-tune\",\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Upload",
      "group": [
        "Platform APIs",
        "Uploads"
      ]
    }
  },
  {
    "title": "The upload part object",
    "description": "The upload Part represents a chunk of bytes we can add to an Upload object.\n",
    "canonical": "uploads/part-object",
    "definitions": [
      {
        "title": "UploadPart",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The upload Part unique identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the Part was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "upload_id",
            "type": "string",
            "description": "The ID of the Upload object that this Part was added to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `upload.part`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "upload.part"
              }
            ],
            "properties": [
              {
                "name": "upload.part",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UploadPart",
          "canonical": "objects/UploadPart",
          "label": "upload.part"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"id\": \"part_def456\",\n    \"object\": \"upload.part\",\n    \"created_at\": 1719186911,\n    \"upload_id\": \"upload_abc123\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UploadPart",
      "group": [
        "Platform APIs",
        "Uploads"
      ]
    }
  },
  {
    "title": "List models",
    "canonical": "models/list",
    "description": "Lists the currently available models, and provides basic information about each one such as the owner and availability.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/models",
      "group": [
        "Platform APIs",
        "Models"
      ],
      "fullPath": "https://api.openai.com/v1/models",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/models \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.models.list()\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const list = await openai.models.list();\n\n  for await (const model of list) {\n    console.log(model);\n  }\n}\nmain();"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\n\nusing OpenAI.Models;\n\nOpenAIModelClient client = new(\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nforeach (var model in client.GetModels().Value)\n{\n    Console.WriteLine(model.Id);\n}\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"model-id-0\",\n      \"object\": \"model\",\n      \"created\": 1686935002,\n      \"owned_by\": \"organization-owner\"\n    },\n    {\n      \"id\": \"model-id-1\",\n      \"object\": \"model\",\n      \"created\": 1686935002,\n      \"owned_by\": \"organization-owner\",\n    },\n    {\n      \"id\": \"model-id-2\",\n      \"object\": \"model\",\n      \"created\": 1686935002,\n      \"owned_by\": \"openai\"\n    },\n  ],\n  \"object\": \"list\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Response",
        "description": "A list of [model](/docs/api-reference/models/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve model",
    "canonical": "models/retrieve",
    "description": "Retrieves a model instance, providing basic information about the model such as the owner and permissioning.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/models/{model}",
      "group": [
        "Platform APIs",
        "Models"
      ],
      "fullPath": "https://api.openai.com/v1/models/{model}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/models/VAR_chat_model_id \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.models.retrieve(\"VAR_chat_model_id\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const model = await openai.models.retrieve(\"VAR_chat_model_id\");\n\n  console.log(model);\n}\n\nmain();"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.ClientModel;\n\nusing OpenAI.Models;\n\n  OpenAIModelClient client = new(\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nClientResult<OpenAIModel> model = client.GetModel(\"babbage-002\");\nConsole.WriteLine(model.Value.Id);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"VAR_chat_model_id\",\n  \"object\": \"model\",\n  \"created\": 1686935002,\n  \"owned_by\": \"openai\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "model",
            "type": "string",
            "description": "The ID of the model to use for this request",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "gpt-4o-mini"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [model](/docs/api-reference/models/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete a fine-tuned model",
    "canonical": "models/delete",
    "description": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/models/{model}",
      "group": [
        "Platform APIs",
        "Models"
      ],
      "fullPath": "https://api.openai.com/v1/models/{model}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/models/ft:gpt-4o-mini:acemeco:suffix:abc123 \\\n  -X DELETE \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.models.delete(\"ft:gpt-4o-mini:acemeco:suffix:abc123\")\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const model = await openai.models.del(\"ft:gpt-4o-mini:acemeco:suffix:abc123\");\n\n  console.log(model);\n}\nmain();"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.ClientModel;\n\nusing OpenAI.Models;\n\nOpenAIModelClient client = new(\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nClientResult success = client.DeleteModel(\"ft:gpt-4o-mini:acemeco:suffix:abc123\");\nConsole.WriteLine(success);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"ft:gpt-4o-mini:acemeco:suffix:abc123\",\n  \"object\": \"model\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "model",
            "type": "string",
            "description": "The model to delete",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "ft:gpt-4o-mini:acemeco:suffix:abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status.",
        "properties": []
      }
    ]
  },
  {
    "title": "The model object",
    "description": "Describes an OpenAI model offering that can be used with the API.",
    "canonical": "models/object",
    "definitions": [
      {
        "title": "Model",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The model identifier, which can be referenced in the API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) when the model was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"model\".",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "model"
              }
            ],
            "properties": [
              {
                "name": "model",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "owned_by",
            "type": "string",
            "description": "The organization that owns the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Model",
          "canonical": "objects/Model",
          "label": "model"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"VAR_chat_model_id\",\n  \"object\": \"model\",\n  \"created\": 1686935002,\n  \"owned_by\": \"openai\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Model",
      "group": [
        "Platform APIs",
        "Models"
      ]
    }
  },
  {
    "title": "Create moderation",
    "canonical": "moderations/create",
    "description": "Classifies if text and/or image inputs are potentially harmful. Learn\nmore in the [moderation guide](/docs/guides/moderation).\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/moderations",
      "group": [
        "Platform APIs",
        "Moderations"
      ],
      "fullPath": "https://api.openai.com/v1/moderations",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Single string",
              "codeblock": {
                "title": "Single string",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/moderations \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"input\": \"I want to kill them.\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmoderation = client.moderations.create(input=\"I want to kill them.\")\nprint(moderation)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const moderation = await openai.moderations.create({ input: \"I want to kill them.\" });\n\n  console.log(moderation);\n}\nmain();\n"
                  },
                  {
                    "title": "csharp",
                    "language": "csharp",
                    "code": "using System;\nusing System.ClientModel;\n\nusing OpenAI.Moderations;\n\nModerationClient client = new(\n    model: \"omni-moderation-latest\",\n    apiKey: Environment.GetEnvironmentVariable(\"OPENAI_API_KEY\")\n);\n\nClientResult<ModerationResult> moderation = client.ClassifyText(\"I want to kill them.\");\n"
                  }
                ]
              }
            },
            {
              "description": "Image and text",
              "codeblock": {
                "title": "Image and text",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/moderations \\\n  -X POST \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"omni-moderation-latest\",\n    \"input\": [\n      { \"type\": \"text\", \"text\": \"...text to classify goes here...\" },\n      {\n        \"type\": \"image_url\",\n        \"image_url\": {\n          \"url\": \"https://example.com/image.png\"\n        }\n      }\n    ]\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.moderations.create(\n    model=\"omni-moderation-latest\",\n    input=[\n        {\"type\": \"text\", \"text\": \"...text to classify goes here...\"},\n        {\n            \"type\": \"image_url\",\n            \"image_url\": {\n                \"url\": \"https://example.com/image.png\",\n                # can also use base64 encoded image URLs\n                # \"url\": \"data:image/jpeg;base64,abcdefg...\"\n            }\n        },\n    ],\n)\n\nprint(response)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nconst moderation = await openai.moderations.create({\n    model: \"omni-moderation-latest\",\n    input: [\n        { type: \"text\", text: \"...text to classify goes here...\" },\n        {\n            type: \"image_url\",\n            image_url: {\n                url: \"https://example.com/image.png\"\n                // can also use base64 encoded image URLs\n                // url: \"data:image/jpeg;base64,abcdefg...\"\n            }\n        }\n    ],\n});\n\nconsole.log(moderation);\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Single string",
              "codeblock": {
                "title": "Single string",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"modr-AB8CjOTu2jiq12hp1AQPfeqFWaORR\",\n  \"model\": \"text-moderation-007\",\n  \"results\": [\n    {\n      \"flagged\": true,\n      \"categories\": {\n        \"sexual\": false,\n        \"hate\": false,\n        \"harassment\": true,\n        \"self-harm\": false,\n        \"sexual/minors\": false,\n        \"hate/threatening\": false,\n        \"violence/graphic\": false,\n        \"self-harm/intent\": false,\n        \"self-harm/instructions\": false,\n        \"harassment/threatening\": true,\n        \"violence\": true\n      },\n      \"category_scores\": {\n        \"sexual\": 0.000011726012417057063,\n        \"hate\": 0.22706663608551025,\n        \"harassment\": 0.5215635299682617,\n        \"self-harm\": 2.227119921371923e-6,\n        \"sexual/minors\": 7.107352217872176e-8,\n        \"hate/threatening\": 0.023547329008579254,\n        \"violence/graphic\": 0.00003391829886822961,\n        \"self-harm/intent\": 1.646940972932498e-6,\n        \"self-harm/instructions\": 1.1198755256458526e-9,\n        \"harassment/threatening\": 0.5694745779037476,\n        \"violence\": 0.9971134662628174\n      }\n    }\n  ]\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Image and text",
              "codeblock": {
                "title": "Image and text",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"modr-0d9740456c391e43c445bf0f010940c7\",\n  \"model\": \"omni-moderation-latest\",\n  \"results\": [\n    {\n      \"flagged\": true,\n      \"categories\": {\n        \"harassment\": true,\n        \"harassment/threatening\": true,\n        \"sexual\": false,\n        \"hate\": false,\n        \"hate/threatening\": false,\n        \"illicit\": false,\n        \"illicit/violent\": false,\n        \"self-harm/intent\": false,\n        \"self-harm/instructions\": false,\n        \"self-harm\": false,\n        \"sexual/minors\": false,\n        \"violence\": true,\n        \"violence/graphic\": true\n      },\n      \"category_scores\": {\n        \"harassment\": 0.8189693396524255,\n        \"harassment/threatening\": 0.804985420696006,\n        \"sexual\": 1.573112165348997e-6,\n        \"hate\": 0.007562942636942845,\n        \"hate/threatening\": 0.004208854591835476,\n        \"illicit\": 0.030535955153511665,\n        \"illicit/violent\": 0.008925306722380033,\n        \"self-harm/intent\": 0.00023023930975076432,\n        \"self-harm/instructions\": 0.0002293869201073356,\n        \"self-harm\": 0.012598046106750154,\n        \"sexual/minors\": 2.212566909570261e-8,\n        \"violence\": 0.9999992735124786,\n        \"violence/graphic\": 0.843064871157054\n      },\n      \"category_applied_input_types\": {\n        \"harassment\": [\n          \"text\"\n        ],\n        \"harassment/threatening\": [\n          \"text\"\n        ],\n        \"sexual\": [\n          \"text\",\n          \"image\"\n        ],\n        \"hate\": [\n          \"text\"\n        ],\n        \"hate/threatening\": [\n          \"text\"\n        ],\n        \"illicit\": [\n          \"text\"\n        ],\n        \"illicit/violent\": [\n          \"text\"\n        ],\n        \"self-harm/intent\": [\n          \"text\",\n          \"image\"\n        ],\n        \"self-harm/instructions\": [\n          \"text\",\n          \"image\"\n        ],\n        \"self-harm\": [\n          \"text\",\n          \"image\"\n        ],\n        \"sexual/minors\": [\n          \"text\"\n        ],\n        \"violence\": [\n          \"text\",\n          \"image\"\n        ],\n        \"violence/graphic\": [\n          \"text\",\n          \"image\"\n        ]\n      }\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "input",
                "type": "$$xor",
                "description": "Input (or inputs) to classify. Can be a single string, an array of strings, or\nan array of multi-modal input objects similar to other models.\n",
                "properties": [
                  {
                    "name": "input",
                    "type": "string",
                    "description": "A string of text to classify for moderation.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": ""
                      },
                      {
                        "name": "example",
                        "value": "I want to kill them."
                      }
                    ]
                  },
                  {
                    "name": "input",
                    "type": "$$array",
                    "description": "An array of strings to classify for moderation.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": ""
                          },
                          {
                            "name": "example",
                            "value": "I want to kill them."
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "input",
                    "type": "$$array",
                    "description": "An array of multi-modal inputs to the moderation model.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "",
                          "type": "object",
                          "description": "An object describing an image to classify.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Always `image_url`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "image_url"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "image_url",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "image_url",
                              "type": "object",
                              "description": "Contains either an image URL or a data URL for a base64 encoded image.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "url",
                                  "type": "string",
                                  "description": "Either a URL of the image or the base64 encoded image data.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "example",
                                      "value": "https://example.com/image.jpg"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "",
                          "type": "object",
                          "description": "An object describing text to classify.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Always `text`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "text"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "text",
                              "type": "string",
                              "description": "A string of text to classify.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "example",
                                  "value": "I want to kill them"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "The content moderation model you would like to use. Learn more in\n[the moderation guide](/docs/guides/moderation), and learn about\navailable models [here](/docs/models#moderation).\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "omni-moderation-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "omni-moderation-2024-09-26",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "text-moderation-latest",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "text-moderation-stable",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateModerationRequest",
              "canonical": "objects/CreateModerationRequest",
              "label": "CreateModerationRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [moderation](/docs/api-reference/moderations/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "The moderation object",
    "description": "Represents if a given text input is potentially harmful.",
    "canonical": "moderations/object",
    "definitions": [
      {
        "title": "CreateModerationResponse",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The unique identifier for the moderation request.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model used to generate the moderation results.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "results",
            "type": "$$array",
            "description": "A list of moderation objects.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "flagged",
                  "type": "boolean",
                  "description": "Whether any of the below categories are flagged.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "categories",
                  "type": "object",
                  "description": "A list of the categories, and whether they are flagged or not.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "hate",
                      "type": "boolean",
                      "description": "Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "hate/threatening",
                      "type": "boolean",
                      "description": "Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "harassment",
                      "type": "boolean",
                      "description": "Content that expresses, incites, or promotes harassing language towards any target.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "harassment/threatening",
                      "type": "boolean",
                      "description": "Harassment content that also includes violence or serious harm towards any target.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "illicit",
                      "type": "boolean",
                      "description": "Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, \"how to shoplift\" would fit this category.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "illicit/violent",
                      "type": "boolean",
                      "description": "Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "self-harm",
                      "type": "boolean",
                      "description": "Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "self-harm/intent",
                      "type": "boolean",
                      "description": "Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "self-harm/instructions",
                      "type": "boolean",
                      "description": "Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "sexual",
                      "type": "boolean",
                      "description": "Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "sexual/minors",
                      "type": "boolean",
                      "description": "Sexual content that includes an individual who is under 18 years old.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "violence",
                      "type": "boolean",
                      "description": "Content that depicts death, violence, or physical injury.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "violence/graphic",
                      "type": "boolean",
                      "description": "Content that depicts death, violence, or physical injury in graphic detail.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "category_scores",
                  "type": "object",
                  "description": "A list of the categories along with their scores as predicted by model.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "hate",
                      "type": "number",
                      "description": "The score for the category 'hate'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "hate/threatening",
                      "type": "number",
                      "description": "The score for the category 'hate/threatening'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "harassment",
                      "type": "number",
                      "description": "The score for the category 'harassment'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "harassment/threatening",
                      "type": "number",
                      "description": "The score for the category 'harassment/threatening'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "illicit",
                      "type": "number",
                      "description": "The score for the category 'illicit'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "illicit/violent",
                      "type": "number",
                      "description": "The score for the category 'illicit/violent'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "self-harm",
                      "type": "number",
                      "description": "The score for the category 'self-harm'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "self-harm/intent",
                      "type": "number",
                      "description": "The score for the category 'self-harm/intent'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "self-harm/instructions",
                      "type": "number",
                      "description": "The score for the category 'self-harm/instructions'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "sexual",
                      "type": "number",
                      "description": "The score for the category 'sexual'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "sexual/minors",
                      "type": "number",
                      "description": "The score for the category 'sexual/minors'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "violence",
                      "type": "number",
                      "description": "The score for the category 'violence'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "violence/graphic",
                      "type": "number",
                      "description": "The score for the category 'violence/graphic'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "category_applied_input_types",
                  "type": "object",
                  "description": "A list of the categories along with the input type(s) that the score applies to.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "hate",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'hate'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "hate/threatening",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'hate/threatening'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "harassment",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'harassment'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "harassment/threatening",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'harassment/threatening'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "illicit",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'illicit'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "illicit/violent",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'illicit/violent'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "self-harm",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'self-harm'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "image",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "self-harm/intent",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'self-harm/intent'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "image",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "self-harm/instructions",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'self-harm/instructions'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "image",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "sexual",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'sexual'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "image",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "sexual/minors",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'sexual/minors'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "violence",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'violence'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "image",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    },
                    {
                      "name": "violence/graphic",
                      "type": "$$array",
                      "description": "The applied input type(s) for the category 'violence/graphic'.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$enum",
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "image",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CreateModerationResponse",
          "canonical": "objects/CreateModerationResponse",
          "label": "CreateModerationResponse"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"modr-0d9740456c391e43c445bf0f010940c7\",\n  \"model\": \"omni-moderation-latest\",\n  \"results\": [\n    {\n      \"flagged\": true,\n      \"categories\": {\n        \"harassment\": true,\n        \"harassment/threatening\": true,\n        \"sexual\": false,\n        \"hate\": false,\n        \"hate/threatening\": false,\n        \"illicit\": false,\n        \"illicit/violent\": false,\n        \"self-harm/intent\": false,\n        \"self-harm/instructions\": false,\n        \"self-harm\": false,\n        \"sexual/minors\": false,\n        \"violence\": true,\n        \"violence/graphic\": true\n      },\n      \"category_scores\": {\n        \"harassment\": 0.8189693396524255,\n        \"harassment/threatening\": 0.804985420696006,\n        \"sexual\": 1.573112165348997e-6,\n        \"hate\": 0.007562942636942845,\n        \"hate/threatening\": 0.004208854591835476,\n        \"illicit\": 0.030535955153511665,\n        \"illicit/violent\": 0.008925306722380033,\n        \"self-harm/intent\": 0.00023023930975076432,\n        \"self-harm/instructions\": 0.0002293869201073356,\n        \"self-harm\": 0.012598046106750154,\n        \"sexual/minors\": 2.212566909570261e-8,\n        \"violence\": 0.9999992735124786,\n        \"violence/graphic\": 0.843064871157054\n      },\n      \"category_applied_input_types\": {\n        \"harassment\": [\n          \"text\"\n        ],\n        \"harassment/threatening\": [\n          \"text\"\n        ],\n        \"sexual\": [\n          \"text\",\n          \"image\"\n        ],\n        \"hate\": [\n          \"text\"\n        ],\n        \"hate/threatening\": [\n          \"text\"\n        ],\n        \"illicit\": [\n          \"text\"\n        ],\n        \"illicit/violent\": [\n          \"text\"\n        ],\n        \"self-harm/intent\": [\n          \"text\",\n          \"image\"\n        ],\n        \"self-harm/instructions\": [\n          \"text\",\n          \"image\"\n        ],\n        \"self-harm\": [\n          \"text\",\n          \"image\"\n        ],\n        \"sexual/minors\": [\n          \"text\"\n        ],\n        \"violence\": [\n          \"text\",\n          \"image\"\n        ],\n        \"violence/graphic\": [\n          \"text\",\n          \"image\"\n        ]\n      }\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CreateModerationResponse",
      "group": [
        "Platform APIs",
        "Moderations"
      ]
    }
  },
  {
    "title": "Create vector store",
    "canonical": "vector-stores/create",
    "description": "Create a vector store.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores",
      "group": [
        "Vector stores",
        "Vector stores"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"name\": \"Support FAQ\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store = client.vector_stores.create(\n  name=\"Support FAQ\"\n)\nprint(vector_store)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStore = await openai.vectorStores.create({\n    name: \"Support FAQ\"\n  });\n  console.log(vectorStore);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vs_abc123\",\n  \"object\": \"vector_store\",\n  \"created_at\": 1699061776,\n  \"name\": \"Support FAQ\",\n  \"bytes\": 139920,\n  \"file_counts\": {\n    \"in_progress\": 0,\n    \"completed\": 3,\n    \"failed\": 0,\n    \"cancelled\": 0,\n    \"total\": 3\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "file_ids",
                "type": "$$array",
                "description": "A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the vector store.",
                "meta": []
              },
              {
                "name": "expires_after",
                "type": "object",
                "description": "The expiration policy for a vector store.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/VectorStoreExpirationAfter",
                  "canonical": "objects/VectorStoreExpirationAfter",
                  "label": "VectorStoreExpirationAfter"
                },
                "properties": [
                  {
                    "name": "anchor",
                    "type": "$$enum",
                    "description": "Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "last_active_at"
                      }
                    ],
                    "properties": [
                      {
                        "name": "last_active_at",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "days",
                    "type": "integer",
                    "description": "The number of days after the anchor time that the vector store will expire.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "maximum",
                        "value": 365
                      },
                      {
                        "name": "minimum",
                        "value": 1
                      }
                    ]
                  }
                ]
              },
              {
                "name": "chunking_strategy",
                "type": "$$xor",
                "description": "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.",
                "properties": [
                  {
                    "name": "Auto Chunking Strategy",
                    "type": "object",
                    "description": "The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/AutoChunkingStrategyRequestParam",
                      "canonical": "objects/AutoChunkingStrategyRequestParam",
                      "label": "AutoChunkingStrategyRequestParam"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `auto`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "auto"
                          }
                        ],
                        "properties": [
                          {
                            "name": "auto",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Static Chunking Strategy",
                    "type": "object",
                    "description": "Customize your own chunking strategy by setting chunk size and chunk overlap.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/StaticChunkingStrategyRequestParam",
                      "canonical": "objects/StaticChunkingStrategyRequestParam",
                      "label": "StaticChunkingStrategyRequestParam"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `static`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "static"
                          }
                        ],
                        "properties": [
                          {
                            "name": "static",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "static",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/StaticChunkingStrategy",
                          "canonical": "objects/StaticChunkingStrategy",
                          "label": "StaticChunkingStrategy"
                        },
                        "properties": [
                          {
                            "name": "max_chunk_size_tokens",
                            "type": "integer",
                            "description": "The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "maximum",
                                "value": 4096
                              },
                              {
                                "name": "minimum",
                                "value": 100
                              }
                            ]
                          },
                          {
                            "name": "chunk_overlap_tokens",
                            "type": "integer",
                            "description": "The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateVectorStoreRequest",
              "canonical": "objects/CreateVectorStoreRequest",
              "label": "CreateVectorStoreRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [vector store](/docs/api-reference/vector-stores/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List vector stores",
    "canonical": "vector-stores/list",
    "description": "Returns a list of vector stores.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores",
      "group": [
        "Vector stores",
        "Vector stores"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_stores = client.vector_stores.list()\nprint(vector_stores)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStores = await openai.vectorStores.list();\n  console.log(vectorStores);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"vs_abc123\",\n      \"object\": \"vector_store\",\n      \"created_at\": 1699061776,\n      \"name\": \"Support FAQ\",\n      \"bytes\": 139920,\n      \"file_counts\": {\n        \"in_progress\": 0,\n        \"completed\": 3,\n        \"failed\": 0,\n        \"cancelled\": 0,\n        \"total\": 3\n      }\n    },\n    {\n      \"id\": \"vs_abc456\",\n      \"object\": \"vector_store\",\n      \"created_at\": 1699061776,\n      \"name\": \"Support FAQ v2\",\n      \"bytes\": 139920,\n      \"file_counts\": {\n        \"in_progress\": 0,\n        \"completed\": 3,\n        \"failed\": 0,\n        \"cancelled\": 0,\n        \"total\": 3\n      }\n    }\n  ],\n  \"first_id\": \"vs_abc123\",\n  \"last_id\": \"vs_abc456\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [vector store](/docs/api-reference/vector-stores/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve vector store",
    "canonical": "vector-stores/retrieve",
    "description": "Retrieves a vector store.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores/{vector_store_id}",
      "group": [
        "Vector stores",
        "Vector stores"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store = client.vector_stores.retrieve(\n  vector_store_id=\"vs_abc123\"\n)\nprint(vector_store)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStore = await openai.vectorStores.retrieve(\n    \"vs_abc123\"\n  );\n  console.log(vectorStore);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vs_abc123\",\n  \"object\": \"vector_store\",\n  \"created_at\": 1699061776\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [vector store](/docs/api-reference/vector-stores/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify vector store",
    "canonical": "vector-stores/modify",
    "description": "Modifies a vector store.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores/{vector_store_id}",
      "group": [
        "Vector stores",
        "Vector stores"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n  -d '{\n    \"name\": \"Support FAQ\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store = client.vector_stores.update(\n  vector_store_id=\"vs_abc123\",\n  name=\"Support FAQ\"\n)\nprint(vector_store)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStore = await openai.vectorStores.update(\n    \"vs_abc123\",\n    {\n      name: \"Support FAQ\"\n    }\n  );\n  console.log(vectorStore);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vs_abc123\",\n  \"object\": \"vector_store\",\n  \"created_at\": 1699061776,\n  \"name\": \"Support FAQ\",\n  \"bytes\": 139920,\n  \"file_counts\": {\n    \"in_progress\": 0,\n    \"completed\": 3,\n    \"failed\": 0,\n    \"cancelled\": 0,\n    \"total\": 3\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store to modify.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The name of the vector store.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "expires_after",
                "type": "object",
                "description": "",
                "properties": [
                  {
                    "name": "anchor",
                    "type": "$$enum",
                    "description": "Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "last_active_at"
                      }
                    ],
                    "properties": [
                      {
                        "name": "last_active_at",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "days",
                    "type": "integer",
                    "description": "The number of days after the anchor time that the vector store will expire.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "maximum",
                        "value": 365
                      },
                      {
                        "name": "minimum",
                        "value": 1
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/VectorStoreExpirationAfter",
                  "canonical": "objects/VectorStoreExpirationAfter",
                  "label": "VectorStoreExpirationAfter"
                }
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/UpdateVectorStoreRequest",
              "canonical": "objects/UpdateVectorStoreRequest",
              "label": "UpdateVectorStoreRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The modified [vector store](/docs/api-reference/vector-stores/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete vector store",
    "canonical": "vector-stores/delete",
    "description": "Delete a vector store.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/vector_stores/{vector_store_id}",
      "group": [
        "Vector stores",
        "Vector stores"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -X DELETE\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ndeleted_vector_store = client.vector_stores.delete(\n  vector_store_id=\"vs_abc123\"\n)\nprint(deleted_vector_store)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const deletedVectorStore = await openai.vectorStores.del(\n    \"vs_abc123\"\n  );\n  console.log(deletedVectorStore);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  id: \"vs_abc123\",\n  object: \"vector_store.deleted\",\n  deleted: true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status",
        "properties": []
      }
    ]
  },
  {
    "title": "Search vector store",
    "canonical": "vector-stores/search",
    "description": "Search a vector store for relevant chunks based on a query and file attributes filter.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores/{vector_store_id}/search",
      "group": [
        "Vector stores",
        "Vector stores"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/search",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST \\\nhttps://api.openai.com/v1/vector_stores/vs_abc123/search \\\n-H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\"query\": \"What is the return policy?\", \"filters\": {...}}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"vector_store.search_results.page\",\n  \"search_query\": \"What is the return policy?\",\n  \"data\": [\n    {\n      \"file_id\": \"file_123\",\n      \"filename\": \"document.pdf\",\n      \"score\": 0.95,\n      \"attributes\": {\n        \"author\": \"John Doe\",\n        \"date\": \"2023-01-01\"\n      },\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Relevant chunk\"\n        }\n      ]\n    },\n    {\n      \"file_id\": \"file_456\",\n      \"filename\": \"notes.txt\",\n      \"score\": 0.89,\n      \"attributes\": {\n        \"author\": \"Jane Smith\",\n        \"date\": \"2023-01-02\"\n      },\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Sample text content from the vector store.\"\n        }\n      ]\n    }\n  ],\n  \"has_more\": false,\n  \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store to search.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "query",
                "type": "$$xor",
                "description": "A query string for a search",
                "properties": [
                  {
                    "name": "query",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "query",
                    "type": "$$array",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "A list of queries to search for.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "rewrite_query",
                "type": "boolean",
                "description": "Whether to rewrite the natural language query for vector search.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  }
                ]
              },
              {
                "name": "max_num_results",
                "type": "integer",
                "description": "The maximum number of results to return. This number should be between 1 and 50 inclusive.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 10
                  },
                  {
                    "name": "maximum",
                    "value": 50
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "filters",
                "type": "$$xor",
                "description": "A filter to apply based on file attributes.",
                "properties": [
                  {
                    "name": "Comparison Filter",
                    "type": "object",
                    "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ComparisonFilter",
                      "canonical": "objects/ComparisonFilter",
                      "label": "ComparisonFilter"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": "eq"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "eq",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "ne",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "gt",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "gte",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "lt",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "lte",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "key",
                        "type": "string",
                        "description": "The key to compare against the value.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "value",
                        "type": "$$xor",
                        "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                        "properties": [
                          {
                            "name": "value",
                            "type": "string",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "value",
                            "type": "number",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "value",
                            "type": "boolean",
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ],
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "Compound Filter",
                    "type": "object",
                    "description": "Combine multiple filters using `and` or `or`.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/CompoundFilter",
                      "canonical": "objects/CompoundFilter",
                      "label": "CompoundFilter"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Type of operation: `and` or `or`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          }
                        ],
                        "properties": [
                          {
                            "name": "and",
                            "type": "string",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "or",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "filters",
                        "type": "$$array",
                        "description": "Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "$$xor",
                          "properties": [
                            {
                              "name": "Comparison Filter",
                              "type": "object",
                              "description": "A filter used to compare a specified attribute key to a given value using a defined comparison operation.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/ComparisonFilter",
                                "canonical": "objects/ComparisonFilter",
                                "label": "ComparisonFilter"
                              },
                              "properties": [
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.\n- `eq`: equals\n- `ne`: not equal\n- `gt`: greater than\n- `gte`: greater than or equal\n- `lt`: less than\n- `lte`: less than or equal\n",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "defaults",
                                      "value": "eq"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "eq",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "ne",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "gte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lt",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "lte",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "key",
                                  "type": "string",
                                  "description": "The key to compare against the value.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "value",
                                  "type": "$$xor",
                                  "description": "The value to compare against the attribute key; supports string, number, or boolean types.",
                                  "properties": [
                                    {
                                      "name": "value",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "number",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    },
                                    {
                                      "name": "value",
                                      "type": "boolean",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ],
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "",
                              "type": "object",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ],
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      }
                    ]
                  }
                ],
                "meta": []
              },
              {
                "name": "ranking_options",
                "type": "object",
                "description": "Ranking options for search.",
                "meta": [],
                "properties": [
                  {
                    "name": "ranker",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "auto"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "default-2024-11-15",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "score_threshold",
                    "type": "number",
                    "description": "",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      },
                      {
                        "name": "maximum",
                        "value": 1
                      },
                      {
                        "name": "minimum",
                        "value": 0
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/VectorStoreSearchRequest",
              "canonical": "objects/VectorStoreSearchRequest",
              "label": "VectorStoreSearchRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A page of search results from the vector store.",
        "properties": []
      }
    ]
  },
  {
    "title": "The vector store object",
    "description": "A vector store is a collection of processed files can be used by the `file_search` tool.",
    "canonical": "vector-stores/object",
    "definitions": [
      {
        "title": "VectorStoreObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `vector_store`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "vector_store"
              }
            ],
            "properties": [
              {
                "name": "vector_store",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the vector store was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the vector store.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "usage_bytes",
            "type": "integer",
            "description": "The total number of bytes used by the files in the vector store.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "file_counts",
            "type": "object",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "integer",
                "description": "The number of files that are currently being processed.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "completed",
                "type": "integer",
                "description": "The number of files that have been successfully processed.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "failed",
                "type": "integer",
                "description": "The number of files that have failed to process.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "cancelled",
                "type": "integer",
                "description": "The number of files that were cancelled.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "total",
                "type": "integer",
                "description": "The total number of files.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the vector store, which can be either `expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "expired",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "expires_after",
            "type": "object",
            "description": "The expiration policy for a vector store.",
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/VectorStoreExpirationAfter",
              "canonical": "objects/VectorStoreExpirationAfter",
              "label": "VectorStoreExpirationAfter"
            },
            "properties": [
              {
                "name": "anchor",
                "type": "$$enum",
                "description": "Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "last_active_at"
                  }
                ],
                "properties": [
                  {
                    "name": "last_active_at",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "days",
                "type": "integer",
                "description": "The number of days after the anchor time that the vector store will expire.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 365
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              }
            ]
          },
          {
            "name": "expires_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the vector store will expire.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "last_active_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the vector store was last active.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/VectorStoreObject",
          "canonical": "objects/VectorStoreObject",
          "label": "vector_store"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vs_123\",\n  \"object\": \"vector_store\",\n  \"created_at\": 1698107661,\n  \"usage_bytes\": 123456,\n  \"last_active_at\": 1698107661,\n  \"name\": \"my_vector_store\",\n  \"status\": \"completed\",\n  \"file_counts\": {\n    \"in_progress\": 0,\n    \"completed\": 100,\n    \"cancelled\": 0,\n    \"failed\": 0,\n    \"total\": 100\n  },\n  \"last_used_at\": 1698107661\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "VectorStoreObject",
      "group": [
        "Vector stores",
        "Vector stores"
      ]
    }
  },
  {
    "title": "Create vector store file",
    "canonical": "vector-stores-files/createFile",
    "description": "Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores/{vector_store_id}/files",
      "group": [
        "Vector stores",
        "Vector store files"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/files",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files \\\n    -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n    -H \"Content-Type: application/json\" \\\n    -H \"OpenAI-Beta: assistants=v2\" \\\n    -d '{\n      \"file_id\": \"file-abc123\"\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store_file = client.vector_stores.files.create(\n  vector_store_id=\"vs_abc123\",\n  file_id=\"file-abc123\"\n)\nprint(vector_store_file)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const myVectorStoreFile = await openai.vectorStores.files.create(\n    \"vs_abc123\",\n    {\n      file_id: \"file-abc123\"\n    }\n  );\n  console.log(myVectorStoreFile);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"vector_store.file\",\n  \"created_at\": 1699061776,\n  \"usage_bytes\": 1234,\n  \"vector_store_id\": \"vs_abcd\",\n  \"status\": \"completed\",\n  \"last_error\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store for which to create a File.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "file_id",
                "type": "string",
                "description": "A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "chunking_strategy",
                "type": "$$xor",
                "description": "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.",
                "properties": [
                  {
                    "name": "Auto Chunking Strategy",
                    "type": "object",
                    "description": "The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/AutoChunkingStrategyRequestParam",
                      "canonical": "objects/AutoChunkingStrategyRequestParam",
                      "label": "AutoChunkingStrategyRequestParam"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `auto`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "auto"
                          }
                        ],
                        "properties": [
                          {
                            "name": "auto",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Static Chunking Strategy",
                    "type": "object",
                    "description": "Customize your own chunking strategy by setting chunk size and chunk overlap.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/StaticChunkingStrategyRequestParam",
                      "canonical": "objects/StaticChunkingStrategyRequestParam",
                      "label": "StaticChunkingStrategyRequestParam"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `static`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "static"
                          }
                        ],
                        "properties": [
                          {
                            "name": "static",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "static",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/StaticChunkingStrategy",
                          "canonical": "objects/StaticChunkingStrategy",
                          "label": "StaticChunkingStrategy"
                        },
                        "properties": [
                          {
                            "name": "max_chunk_size_tokens",
                            "type": "integer",
                            "description": "The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "maximum",
                                "value": 4096
                              },
                              {
                                "name": "minimum",
                                "value": 100
                              }
                            ]
                          },
                          {
                            "name": "chunk_overlap_tokens",
                            "type": "integer",
                            "description": "The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ChunkingStrategyRequestParam",
                  "canonical": "objects/ChunkingStrategyRequestParam",
                  "label": "ChunkingStrategyRequestParam"
                }
              },
              {
                "name": "attributes",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/VectorStoreFileAttributes",
                  "canonical": "objects/VectorStoreFileAttributes",
                  "label": "VectorStoreFileAttributes"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateVectorStoreFileRequest",
              "canonical": "objects/CreateVectorStoreFileRequest",
              "label": "CreateVectorStoreFileRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [vector store file](/docs/api-reference/vector-stores-files/file-object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List vector store files",
    "canonical": "vector-stores-files/listFiles",
    "description": "Returns a list of vector store files.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores/{vector_store_id}/files",
      "group": [
        "Vector stores",
        "Vector store files"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/files",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store_files = client.vector_stores.files.list(\n  vector_store_id=\"vs_abc123\"\n)\nprint(vector_store_files)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStoreFiles = await openai.vectorStores.files.list(\n    \"vs_abc123\"\n  );\n  console.log(vectorStoreFiles);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"file-abc123\",\n      \"object\": \"vector_store.file\",\n      \"created_at\": 1699061776,\n      \"vector_store_id\": \"vs_abc123\"\n    },\n    {\n      \"id\": \"file-abc456\",\n      \"object\": \"vector_store.file\",\n      \"created_at\": 1699061776,\n      \"vector_store_id\": \"vs_abc123\"\n    }\n  ],\n  \"first_id\": \"file-abc123\",\n  \"last_id\": \"file-abc456\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store that the files belong to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          },
          {
            "name": "filter",
            "type": "$$enum",
            "description": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [vector store file](/docs/api-reference/vector-stores-files/file-object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve vector store file",
    "canonical": "vector-stores-files/getFile",
    "description": "Retrieves a vector store file.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores/{vector_store_id}/files/{file_id}",
      "group": [
        "Vector stores",
        "Vector store files"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store_file = client.vector_stores.files.retrieve(\n  vector_store_id=\"vs_abc123\",\n  file_id=\"file-abc123\"\n)\nprint(vector_store_file)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStoreFile = await openai.vectorStores.files.retrieve(\n    \"vs_abc123\",\n    \"file-abc123\"\n  );\n  console.log(vectorStoreFile);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"vector_store.file\",\n  \"created_at\": 1699061776,\n  \"vector_store_id\": \"vs_abcd\",\n  \"status\": \"completed\",\n  \"last_error\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store that the file belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          },
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file being retrieved.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "file-abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [vector store file](/docs/api-reference/vector-stores-files/file-object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve vector store file content",
    "canonical": "vector-stores-files/getContent",
    "description": "Retrieve the parsed contents of a vector store file.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores/{vector_store_id}/files/{file_id}/content",
      "group": [
        "Vector stores",
        "Vector store files"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}/content",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \\\nhttps://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123/content \\\n-H \"Authorization: Bearer $OPENAI_API_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"file_id\": \"file-abc123\",\n  \"filename\": \"example.txt\",\n  \"attributes\": {\"key\": \"value\"},\n  \"content\": [\n    {\"type\": \"text\", \"text\": \"...\"},\n    ...\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          },
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file within the vector store.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "file-abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The parsed contents of the specified vector store file.",
        "properties": []
      }
    ]
  },
  {
    "title": "Update vector store file attributes",
    "canonical": "vector-stores-files/updateAttributes",
    "description": "Update attributes on a vector store file.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores/{vector_store_id}/files/{file_id}",
      "group": [
        "Vector stores",
        "Vector store files"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"attributes\": {\"key1\": \"value1\", \"key2\": 2}}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"vector_store.file\",\n  \"usage_bytes\": 1234,\n  \"created_at\": 1699061776,\n  \"vector_store_id\": \"vs_abcd\",\n  \"status\": \"completed\",\n  \"last_error\": null,\n  \"chunking_strategy\": {...},\n  \"attributes\": {\"key1\": \"value1\", \"key2\": 2}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store the file belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          },
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file to update attributes.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "file-abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "attributes",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/VectorStoreFileAttributes",
                  "canonical": "objects/VectorStoreFileAttributes",
                  "label": "VectorStoreFileAttributes"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/UpdateVectorStoreFileAttributesRequest",
              "canonical": "objects/UpdateVectorStoreFileAttributesRequest",
              "label": "UpdateVectorStoreFileAttributesRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The updated [vector store file](/docs/api-reference/vector-stores-files/file-object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete vector store file",
    "canonical": "vector-stores-files/deleteFile",
    "description": "Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/vector_stores/{vector_store_id}/files/{file_id}",
      "group": [
        "Vector stores",
        "Vector store files"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -X DELETE\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ndeleted_vector_store_file = client.vector_stores.files.delete(\n    vector_store_id=\"vs_abc123\",\n    file_id=\"file-abc123\"\n)\nprint(deleted_vector_store_file)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const deletedVectorStoreFile = await openai.vectorStores.files.del(\n    \"vs_abc123\",\n    \"file-abc123\"\n  );\n  console.log(deletedVectorStoreFile);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  id: \"file-abc123\",\n  object: \"vector_store.file.deleted\",\n  deleted: true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store that the file belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "file_id",
            "type": "string",
            "description": "The ID of the file to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status",
        "properties": []
      }
    ]
  },
  {
    "title": "The vector store file object",
    "description": "A list of files attached to a vector store.",
    "canonical": "vector-stores-files/file-object",
    "definitions": [
      {
        "title": "VectorStoreFileObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `vector_store.file`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "vector_store.file"
              }
            ],
            "properties": [
              {
                "name": "vector_store.file",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "usage_bytes",
            "type": "integer",
            "description": "The total vector store usage in bytes. Note that this may be different from the original file size.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the vector store file was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the vector store file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`. The status `completed` indicates that the vector store file is ready for use.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "last_error",
            "type": "object",
            "description": "The last error associated with this vector store file. Will be `null` if there are no errors.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code",
                "type": "$$enum",
                "description": "One of `server_error` or `rate_limit_exceeded`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "server_error",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "unsupported_file",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_file",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable description of the error.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "chunking_strategy",
            "type": "$$xor",
            "description": "The strategy used to chunk the file.",
            "properties": [
              {
                "name": "Static Chunking Strategy",
                "type": "object",
                "description": "",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/StaticChunkingStrategyResponseParam",
                  "canonical": "objects/StaticChunkingStrategyResponseParam",
                  "label": "StaticChunkingStrategyResponseParam"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Always `static`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "static"
                      }
                    ],
                    "properties": [
                      {
                        "name": "static",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "static",
                    "type": "object",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/StaticChunkingStrategy",
                      "canonical": "objects/StaticChunkingStrategy",
                      "label": "StaticChunkingStrategy"
                    },
                    "properties": [
                      {
                        "name": "max_chunk_size_tokens",
                        "type": "integer",
                        "description": "The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "maximum",
                            "value": 4096
                          },
                          {
                            "name": "minimum",
                            "value": 100
                          }
                        ]
                      },
                      {
                        "name": "chunk_overlap_tokens",
                        "type": "integer",
                        "description": "The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "Other Chunking Strategy",
                "type": "object",
                "description": "This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the `chunking_strategy` concept was introduced in the API.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/OtherChunkingStrategyResponseParam",
                  "canonical": "objects/OtherChunkingStrategyResponseParam",
                  "label": "OtherChunkingStrategyResponseParam"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Always `other`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "other"
                      }
                    ],
                    "properties": [
                      {
                        "name": "other",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              }
            ],
            "meta": []
          },
          {
            "name": "attributes",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/VectorStoreFileAttributes",
              "canonical": "objects/VectorStoreFileAttributes",
              "label": "VectorStoreFileAttributes"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/VectorStoreFileObject",
          "canonical": "objects/VectorStoreFileObject",
          "label": "vector_store.file"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"file-abc123\",\n  \"object\": \"vector_store.file\",\n  \"usage_bytes\": 1234,\n  \"created_at\": 1698107661,\n  \"vector_store_id\": \"vs_abc123\",\n  \"status\": \"completed\",\n  \"last_error\": null,\n  \"chunking_strategy\": {\n    \"type\": \"static\",\n    \"static\": {\n      \"max_chunk_size_tokens\": 800,\n      \"chunk_overlap_tokens\": 400\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "VectorStoreFileObject",
      "group": [
        "Vector stores",
        "Vector store files"
      ]
    }
  },
  {
    "title": "Create vector store file batch",
    "canonical": "vector-stores-file-batches/createBatch",
    "description": "Create a vector store file batch.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores/{vector_store_id}/file_batches",
      "group": [
        "Vector stores",
        "Vector store file batches"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/file_batches \\\n    -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n    -H \"Content-Type: application/json \\\n    -H \"OpenAI-Beta: assistants=v2\" \\\n    -d '{\n      \"file_ids\": [\"file-abc123\", \"file-abc456\"]\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store_file_batch = client.vector_stores.file_batches.create(\n  vector_store_id=\"vs_abc123\",\n  file_ids=[\"file-abc123\", \"file-abc456\"]\n)\nprint(vector_store_file_batch)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const myVectorStoreFileBatch = await openai.vectorStores.fileBatches.create(\n    \"vs_abc123\",\n    {\n      file_ids: [\"file-abc123\", \"file-abc456\"]\n    }\n  );\n  console.log(myVectorStoreFileBatch);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vsfb_abc123\",\n  \"object\": \"vector_store.file_batch\",\n  \"created_at\": 1699061776,\n  \"vector_store_id\": \"vs_abc123\",\n  \"status\": \"in_progress\",\n  \"file_counts\": {\n    \"in_progress\": 1,\n    \"completed\": 1,\n    \"failed\": 0,\n    \"cancelled\": 0,\n    \"total\": 0,\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store for which to create a File Batch.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "file_ids",
                "type": "$$array",
                "description": "A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              },
              {
                "name": "chunking_strategy",
                "type": "$$xor",
                "description": "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.",
                "properties": [
                  {
                    "name": "Auto Chunking Strategy",
                    "type": "object",
                    "description": "The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/AutoChunkingStrategyRequestParam",
                      "canonical": "objects/AutoChunkingStrategyRequestParam",
                      "label": "AutoChunkingStrategyRequestParam"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `auto`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "auto"
                          }
                        ],
                        "properties": [
                          {
                            "name": "auto",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "Static Chunking Strategy",
                    "type": "object",
                    "description": "Customize your own chunking strategy by setting chunk size and chunk overlap.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/StaticChunkingStrategyRequestParam",
                      "canonical": "objects/StaticChunkingStrategyRequestParam",
                      "label": "StaticChunkingStrategyRequestParam"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `static`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "static"
                          }
                        ],
                        "properties": [
                          {
                            "name": "static",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "static",
                        "type": "object",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/StaticChunkingStrategy",
                          "canonical": "objects/StaticChunkingStrategy",
                          "label": "StaticChunkingStrategy"
                        },
                        "properties": [
                          {
                            "name": "max_chunk_size_tokens",
                            "type": "integer",
                            "description": "The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "maximum",
                                "value": 4096
                              },
                              {
                                "name": "minimum",
                                "value": 100
                              }
                            ]
                          },
                          {
                            "name": "chunk_overlap_tokens",
                            "type": "integer",
                            "description": "The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ChunkingStrategyRequestParam",
                  "canonical": "objects/ChunkingStrategyRequestParam",
                  "label": "ChunkingStrategyRequestParam"
                }
              },
              {
                "name": "attributes",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be \nuseful for storing additional information about the object in a structured \nformat, and querying for objects via API or the dashboard. Keys are strings \nwith a maximum length of 64 characters. Values are strings with a maximum \nlength of 512 characters, booleans, or numbers.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/VectorStoreFileAttributes",
                  "canonical": "objects/VectorStoreFileAttributes",
                  "label": "VectorStoreFileAttributes"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateVectorStoreFileBatchRequest",
              "canonical": "objects/CreateVectorStoreFileBatchRequest",
              "label": "CreateVectorStoreFileBatchRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [vector store file batch](/docs/api-reference/vector-stores-file-batches/batch-object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve vector store file batch",
    "canonical": "vector-stores-file-batches/getBatch",
    "description": "Retrieves a vector store file batch.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores/{vector_store_id}/file_batches/{batch_id}",
      "group": [
        "Vector stores",
        "Vector store file batches"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files_batches/vsfb_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store_file_batch = client.vector_stores.file_batches.retrieve(\n  vector_store_id=\"vs_abc123\",\n  batch_id=\"vsfb_abc123\"\n)\nprint(vector_store_file_batch)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStoreFileBatch = await openai.vectorStores.fileBatches.retrieve(\n    \"vs_abc123\",\n    \"vsfb_abc123\"\n  );\n  console.log(vectorStoreFileBatch);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vsfb_abc123\",\n  \"object\": \"vector_store.file_batch\",\n  \"created_at\": 1699061776,\n  \"vector_store_id\": \"vs_abc123\",\n  \"status\": \"in_progress\",\n  \"file_counts\": {\n    \"in_progress\": 1,\n    \"completed\": 1,\n    \"failed\": 0,\n    \"cancelled\": 0,\n    \"total\": 0,\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store that the file batch belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vs_abc123"
              }
            ]
          },
          {
            "name": "batch_id",
            "type": "string",
            "description": "The ID of the file batch being retrieved.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "vsfb_abc123"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [vector store file batch](/docs/api-reference/vector-stores-file-batches/batch-object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Cancel vector store file batch",
    "canonical": "vector-stores-file-batches/cancelBatch",
    "description": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel",
      "group": [
        "Vector stores",
        "Vector store file batches"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files_batches/vsfb_abc123/cancel \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -X POST\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ndeleted_vector_store_file_batch = client.vector_stores.file_batches.cancel(\n    vector_store_id=\"vs_abc123\",\n    file_batch_id=\"vsfb_abc123\"\n)\nprint(deleted_vector_store_file_batch)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const deletedVectorStoreFileBatch = await openai.vectorStores.fileBatches.cancel(\n    \"vs_abc123\",\n    \"vsfb_abc123\"\n  );\n  console.log(deletedVectorStoreFileBatch);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vsfb_abc123\",\n  \"object\": \"vector_store.file_batch\",\n  \"created_at\": 1699061776,\n  \"vector_store_id\": \"vs_abc123\",\n  \"status\": \"in_progress\",\n  \"file_counts\": {\n    \"in_progress\": 12,\n    \"completed\": 3,\n    \"failed\": 0,\n    \"cancelled\": 0,\n    \"total\": 15,\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store that the file batch belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "batch_id",
            "type": "string",
            "description": "The ID of the file batch to cancel.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The modified vector store file batch object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List vector store files in a batch",
    "canonical": "vector-stores-file-batches/listBatchFiles",
    "description": "Returns a list of vector store files in a batch.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/vector_stores/{vector_store_id}/file_batches/{batch_id}/files",
      "group": [
        "Vector stores",
        "Vector store file batches"
      ],
      "fullPath": "https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/vector_stores/vs_abc123/files_batches/vsfb_abc123/files \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nvector_store_files = client.vector_stores.file_batches.list_files(\n  vector_store_id=\"vs_abc123\",\n  batch_id=\"vsfb_abc123\"\n)\nprint(vector_store_files)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const vectorStoreFiles = await openai.vectorStores.fileBatches.listFiles(\n    \"vs_abc123\",\n    \"vsfb_abc123\"\n  );\n  console.log(vectorStoreFiles);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"file-abc123\",\n      \"object\": \"vector_store.file\",\n      \"created_at\": 1699061776,\n      \"vector_store_id\": \"vs_abc123\"\n    },\n    {\n      \"id\": \"file-abc456\",\n      \"object\": \"vector_store.file\",\n      \"created_at\": 1699061776,\n      \"vector_store_id\": \"vs_abc123\"\n    }\n  ],\n  \"first_id\": \"file-abc123\",\n  \"last_id\": \"file-abc456\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the vector store that the files belong to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "batch_id",
            "type": "string",
            "description": "The ID of the file batch that the files belong to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          },
          {
            "name": "filter",
            "type": "$$enum",
            "description": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.",
            "meta": [
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [vector store file](/docs/api-reference/vector-stores-files/file-object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "The vector store files batch object",
    "description": "A batch of files attached to a vector store.",
    "canonical": "vector-stores-file-batches/batch-object",
    "definitions": [
      {
        "title": "VectorStoreFileBatchObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `vector_store.file_batch`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "vector_store.files_batch"
              }
            ],
            "properties": [
              {
                "name": "vector_store.files_batch",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the vector store files batch was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "vector_store_id",
            "type": "string",
            "description": "The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the vector store files batch, which can be either `in_progress`, `completed`, `cancelled` or `failed`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "file_counts",
            "type": "object",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "integer",
                "description": "The number of files that are currently being processed.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "completed",
                "type": "integer",
                "description": "The number of files that have been processed.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "failed",
                "type": "integer",
                "description": "The number of files that have failed to process.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "cancelled",
                "type": "integer",
                "description": "The number of files that where cancelled.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "total",
                "type": "integer",
                "description": "The total number of files.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/VectorStoreFileBatchObject",
          "canonical": "objects/VectorStoreFileBatchObject",
          "label": "vector_store.files_batch"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"vsfb_123\",\n  \"object\": \"vector_store.files_batch\",\n  \"created_at\": 1698107661,\n  \"vector_store_id\": \"vs_abc123\",\n  \"status\": \"completed\",\n  \"file_counts\": {\n    \"in_progress\": 0,\n    \"completed\": 100,\n    \"failed\": 0,\n    \"cancelled\": 0,\n    \"total\": 100\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "VectorStoreFileBatchObject",
      "group": [
        "Vector stores",
        "Vector store file batches"
      ]
    }
  },
  {
    "title": "Create assistant",
    "canonical": "assistants/createAssistant",
    "description": "Create an assistant with a model and instructions.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/assistants",
      "group": [
        "Assistants",
        "Assistants"
      ],
      "fullPath": "https://api.openai.com/v1/assistants",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Code Interpreter",
              "codeblock": {
                "title": "Code Interpreter",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/assistants\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"instructions\": \"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n    \"name\": \"Math Tutor\",\n    \"tools\": [{\"type\": \"code_interpreter\"}],\n    \"model\": \"gpt-4o\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_assistant = client.beta.assistants.create(\n    instructions=\"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n    name=\"Math Tutor\",\n    tools=[{\"type\": \"code_interpreter\"}],\n    model=\"gpt-4o\",\n)\nprint(my_assistant)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const myAssistant = await openai.beta.assistants.create({\n    instructions:\n      \"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n    name: \"Math Tutor\",\n    tools: [{ type: \"code_interpreter\" }],\n    model: \"gpt-4o\",\n  });\n\n  console.log(myAssistant);\n}\n\nmain();"
                  }
                ]
              }
            },
            {
              "description": "Files",
              "codeblock": {
                "title": "Files",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/assistants \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies.\",\n    \"tools\": [{\"type\": \"file_search\"}],\n    \"tool_resources\": {\"file_search\": {\"vector_store_ids\": [\"vs_123\"]}},\n    \"model\": \"gpt-4o\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_assistant = client.beta.assistants.create(\n    instructions=\"You are an HR bot, and you have access to files to answer employee questions about company policies.\",\n    name=\"HR Helper\",\n    tools=[{\"type\": \"file_search\"}],\n    tool_resources={\"file_search\": {\"vector_store_ids\": [\"vs_123\"]}},\n    model=\"gpt-4o\"\n)\nprint(my_assistant)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const myAssistant = await openai.beta.assistants.create({\n    instructions:\n      \"You are an HR bot, and you have access to files to answer employee questions about company policies.\",\n    name: \"HR Helper\",\n    tools: [{ type: \"file_search\" }],\n    tool_resources: {\n      file_search: {\n        vector_store_ids: [\"vs_123\"]\n      }\n    },\n    model: \"gpt-4o\"\n  });\n\n  console.log(myAssistant);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Code Interpreter",
              "codeblock": {
                "title": "Code Interpreter",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"asst_abc123\",\n  \"object\": \"assistant\",\n  \"created_at\": 1698984975,\n  \"name\": \"Math Tutor\",\n  \"description\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n  \"tools\": [\n    {\n      \"type\": \"code_interpreter\"\n    }\n  ],\n  \"metadata\": {},\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"response_format\": \"auto\"\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Files",
              "codeblock": {
                "title": "Files",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"asst_abc123\",\n  \"object\": \"assistant\",\n  \"created_at\": 1699009403,\n  \"name\": \"HR Helper\",\n  \"description\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies.\",\n  \"tools\": [\n    {\n      \"type\": \"file_search\"\n    }\n  ],\n  \"tool_resources\": {\n    \"file_search\": {\n      \"vector_store_ids\": [\"vs_123\"]\n    }\n  },\n  \"metadata\": {},\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"response_format\": \"auto\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "model",
                "type": "$$union",
                "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview-2025-02-27",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/AssistantSupportedModels",
                      "canonical": "objects/AssistantSupportedModels",
                      "label": "AssistantSupportedModels"
                    }
                  }
                ]
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the assistant. The maximum length is 256 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "description",
                "type": "string",
                "description": "The description of the assistant. The maximum length is 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The system instructions that the assistant uses. The maximum length is 256,000 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "reasoning_effort",
                "type": "$$enum",
                "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "medium"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningEffort",
                  "canonical": "objects/ReasoningEffort",
                  "label": "ReasoningEffort"
                }
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": []
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "Code interpreter tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsCode",
                        "canonical": "objects/AssistantToolsCode",
                        "label": "AssistantToolsCode"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `code_interpreter`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "code_interpreter"
                            }
                          ],
                          "properties": [
                            {
                              "name": "code_interpreter",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "FileSearch tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFileSearch",
                        "canonical": "objects/AssistantToolsFileSearch",
                        "label": "AssistantToolsFileSearch"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `file_search`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "file_search",
                          "type": "object",
                          "description": "Overrides for the file search tool.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "max_num_results",
                              "type": "integer",
                              "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [
                                {
                                  "name": "maximum",
                                  "value": 50
                                },
                                {
                                  "name": "minimum",
                                  "value": 1
                                }
                              ]
                            },
                            {
                              "name": "ranking_options",
                              "type": "object",
                              "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchRankingOptions",
                                "canonical": "objects/FileSearchRankingOptions",
                                "label": "FileSearchRankingOptions"
                              },
                              "properties": [
                                {
                                  "name": "ranker",
                                  "type": "$$enum",
                                  "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "default_2024_08_21",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/FileSearchRanker",
                                    "canonical": "objects/FileSearchRanker",
                                    "label": "FileSearchRanker"
                                  }
                                },
                                {
                                  "name": "score_threshold",
                                  "type": "number",
                                  "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "maximum",
                                      "value": 1
                                    },
                                    {
                                      "name": "minimum",
                                      "value": 0
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFunction",
                        "canonical": "objects/AssistantToolsFunction",
                        "label": "AssistantToolsFunction"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `function`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionObject",
                            "canonical": "objects/FunctionObject",
                            "label": "FunctionObject"
                          },
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                              "meta": []
                            },
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FunctionParameters",
                                "canonical": "objects/FunctionParameters",
                                "label": "FunctionParameters"
                              }
                            },
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                              "meta": [
                                {
                                  "name": "defaults",
                                  "value": false
                                },
                                {
                                  "name": "nullable",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_resources",
                "type": "object",
                "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "code_interpreter",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "file_ids",
                        "type": "$$array",
                        "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": []
                          }
                        ],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  },
                  {
                    "name": "file_search",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "file_search",
                        "type": "object",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "file_search",
                        "type": "object",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "meta": []
                  }
                ]
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "response_format",
                "type": "$$xor",
                "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                "properties": [
                  {
                    "name": "response_format",
                    "type": "$$enum",
                    "description": "`auto` is the default value\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "Text",
                    "type": "object",
                    "description": "Default response format. Used to generate text responses.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatText",
                      "canonical": "objects/ResponseFormatText",
                      "label": "ResponseFormatText"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `text`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON object",
                    "type": "object",
                    "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonObject",
                      "canonical": "objects/ResponseFormatJsonObject",
                      "label": "ResponseFormatJsonObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_object`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_object"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_object",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON schema",
                    "type": "object",
                    "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonSchema",
                      "canonical": "objects/ResponseFormatJsonSchema",
                      "label": "ResponseFormatJsonSchema"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_schema`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_schema"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_schema",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "json_schema",
                        "type": "object",
                        "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateAssistantRequest",
              "canonical": "objects/CreateAssistantRequest",
              "label": "CreateAssistantRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "An [assistant](/docs/api-reference/assistants/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List assistants",
    "canonical": "assistants/listAssistants",
    "description": "Returns a list of assistants.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/assistants",
      "group": [
        "Assistants",
        "Assistants"
      ],
      "fullPath": "https://api.openai.com/v1/assistants",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/assistants?order=desc&limit=20\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_assistants = client.beta.assistants.list(\n    order=\"desc\",\n    limit=\"20\",\n)\nprint(my_assistants.data)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const myAssistants = await openai.beta.assistants.list({\n    order: \"desc\",\n    limit: \"20\",\n  });\n\n  console.log(myAssistants.data);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"asst_abc123\",\n      \"object\": \"assistant\",\n      \"created_at\": 1698982736,\n      \"name\": \"Coding Tutor\",\n      \"description\": null,\n      \"model\": \"gpt-4o\",\n      \"instructions\": \"You are a helpful assistant designed to make me better at coding!\",\n      \"tools\": [],\n      \"tool_resources\": {},\n      \"metadata\": {},\n      \"top_p\": 1.0,\n      \"temperature\": 1.0,\n      \"response_format\": \"auto\"\n    },\n    {\n      \"id\": \"asst_abc456\",\n      \"object\": \"assistant\",\n      \"created_at\": 1698982718,\n      \"name\": \"My Assistant\",\n      \"description\": null,\n      \"model\": \"gpt-4o\",\n      \"instructions\": \"You are a helpful assistant designed to make me better at coding!\",\n      \"tools\": [],\n      \"tool_resources\": {},\n      \"metadata\": {},\n      \"top_p\": 1.0,\n      \"temperature\": 1.0,\n      \"response_format\": \"auto\"\n    },\n    {\n      \"id\": \"asst_abc789\",\n      \"object\": \"assistant\",\n      \"created_at\": 1698982643,\n      \"name\": null,\n      \"description\": null,\n      \"model\": \"gpt-4o\",\n      \"instructions\": null,\n      \"tools\": [],\n      \"tool_resources\": {},\n      \"metadata\": {},\n      \"top_p\": 1.0,\n      \"temperature\": 1.0,\n      \"response_format\": \"auto\"\n    }\n  ],\n  \"first_id\": \"asst_abc123\",\n  \"last_id\": \"asst_abc789\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [assistant](/docs/api-reference/assistants/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve assistant",
    "canonical": "assistants/getAssistant",
    "description": "Retrieves an assistant.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/assistants/{assistant_id}",
      "group": [
        "Assistants",
        "Assistants"
      ],
      "fullPath": "https://api.openai.com/v1/assistants/{assistant_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/assistants/asst_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_assistant = client.beta.assistants.retrieve(\"asst_abc123\")\nprint(my_assistant)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const myAssistant = await openai.beta.assistants.retrieve(\n    \"asst_abc123\"\n  );\n\n  console.log(myAssistant);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"asst_abc123\",\n  \"object\": \"assistant\",\n  \"created_at\": 1699009709,\n  \"name\": \"HR Helper\",\n  \"description\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies.\",\n  \"tools\": [\n    {\n      \"type\": \"file_search\"\n    }\n  ],\n  \"metadata\": {},\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"response_format\": \"auto\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "assistant_id",
            "type": "string",
            "description": "The ID of the assistant to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [assistant](/docs/api-reference/assistants/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify assistant",
    "canonical": "assistants/modifyAssistant",
    "description": "Modifies an assistant.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/assistants/{assistant_id}",
      "group": [
        "Assistants",
        "Assistants"
      ],
      "fullPath": "https://api.openai.com/v1/assistants/{assistant_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/assistants/asst_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n      \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.\",\n      \"tools\": [{\"type\": \"file_search\"}],\n      \"model\": \"gpt-4o\"\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_updated_assistant = client.beta.assistants.update(\n  \"asst_abc123\",\n  instructions=\"You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.\",\n  name=\"HR Helper\",\n  tools=[{\"type\": \"file_search\"}],\n  model=\"gpt-4o\"\n)\n\nprint(my_updated_assistant)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const myUpdatedAssistant = await openai.beta.assistants.update(\n    \"asst_abc123\",\n    {\n      instructions:\n        \"You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.\",\n      name: \"HR Helper\",\n      tools: [{ type: \"file_search\" }],\n      model: \"gpt-4o\"\n    }\n  );\n\n  console.log(myUpdatedAssistant);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"asst_123\",\n  \"object\": \"assistant\",\n  \"created_at\": 1699009709,\n  \"name\": \"HR Helper\",\n  \"description\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.\",\n  \"tools\": [\n    {\n      \"type\": \"file_search\"\n    }\n  ],\n  \"tool_resources\": {\n    \"file_search\": {\n      \"vector_store_ids\": []\n    }\n  },\n  \"metadata\": {},\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"response_format\": \"auto\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "assistant_id",
            "type": "string",
            "description": "The ID of the assistant to modify.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "model",
                "type": "$$union",
                "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview-2025-02-27",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/AssistantSupportedModels",
                      "canonical": "objects/AssistantSupportedModels",
                      "label": "AssistantSupportedModels"
                    }
                  }
                ]
              },
              {
                "name": "reasoning_effort",
                "type": "$$enum",
                "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "medium"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningEffort",
                  "canonical": "objects/ReasoningEffort",
                  "label": "ReasoningEffort"
                }
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the assistant. The maximum length is 256 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "description",
                "type": "string",
                "description": "The description of the assistant. The maximum length is 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "The system instructions that the assistant uses. The maximum length is 256,000 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": []
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "Code interpreter tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsCode",
                        "canonical": "objects/AssistantToolsCode",
                        "label": "AssistantToolsCode"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `code_interpreter`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "code_interpreter"
                            }
                          ],
                          "properties": [
                            {
                              "name": "code_interpreter",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "FileSearch tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFileSearch",
                        "canonical": "objects/AssistantToolsFileSearch",
                        "label": "AssistantToolsFileSearch"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `file_search`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "file_search",
                          "type": "object",
                          "description": "Overrides for the file search tool.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "max_num_results",
                              "type": "integer",
                              "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [
                                {
                                  "name": "maximum",
                                  "value": 50
                                },
                                {
                                  "name": "minimum",
                                  "value": 1
                                }
                              ]
                            },
                            {
                              "name": "ranking_options",
                              "type": "object",
                              "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchRankingOptions",
                                "canonical": "objects/FileSearchRankingOptions",
                                "label": "FileSearchRankingOptions"
                              },
                              "properties": [
                                {
                                  "name": "ranker",
                                  "type": "$$enum",
                                  "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "default_2024_08_21",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/FileSearchRanker",
                                    "canonical": "objects/FileSearchRanker",
                                    "label": "FileSearchRanker"
                                  }
                                },
                                {
                                  "name": "score_threshold",
                                  "type": "number",
                                  "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "maximum",
                                      "value": 1
                                    },
                                    {
                                      "name": "minimum",
                                      "value": 0
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFunction",
                        "canonical": "objects/AssistantToolsFunction",
                        "label": "AssistantToolsFunction"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `function`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionObject",
                            "canonical": "objects/FunctionObject",
                            "label": "FunctionObject"
                          },
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                              "meta": []
                            },
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FunctionParameters",
                                "canonical": "objects/FunctionParameters",
                                "label": "FunctionParameters"
                              }
                            },
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                              "meta": [
                                {
                                  "name": "defaults",
                                  "value": false
                                },
                                {
                                  "name": "nullable",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_resources",
                "type": "object",
                "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "code_interpreter",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "file_ids",
                        "type": "$$array",
                        "description": "Overrides the list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": []
                          }
                        ],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  },
                  {
                    "name": "file_search",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "vector_store_ids",
                        "type": "$$array",
                        "description": "Overrides the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n",
                        "meta": [],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "response_format",
                "type": "$$xor",
                "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                "properties": [
                  {
                    "name": "response_format",
                    "type": "$$enum",
                    "description": "`auto` is the default value\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "Text",
                    "type": "object",
                    "description": "Default response format. Used to generate text responses.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatText",
                      "canonical": "objects/ResponseFormatText",
                      "label": "ResponseFormatText"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `text`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON object",
                    "type": "object",
                    "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonObject",
                      "canonical": "objects/ResponseFormatJsonObject",
                      "label": "ResponseFormatJsonObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_object`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_object"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_object",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON schema",
                    "type": "object",
                    "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonSchema",
                      "canonical": "objects/ResponseFormatJsonSchema",
                      "label": "ResponseFormatJsonSchema"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_schema`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_schema"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_schema",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "json_schema",
                        "type": "object",
                        "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ModifyAssistantRequest",
              "canonical": "objects/ModifyAssistantRequest",
              "label": "ModifyAssistantRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The modified [assistant](/docs/api-reference/assistants/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete assistant",
    "canonical": "assistants/deleteAssistant",
    "description": "Delete an assistant.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/assistants/{assistant_id}",
      "group": [
        "Assistants",
        "Assistants"
      ],
      "fullPath": "https://api.openai.com/v1/assistants/{assistant_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/assistants/asst_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -X DELETE\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.beta.assistants.delete(\"asst_abc123\")\nprint(response)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const response = await openai.beta.assistants.del(\"asst_abc123\");\n\n  console.log(response);\n}\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"asst_abc123\",\n  \"object\": \"assistant.deleted\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "assistant_id",
            "type": "string",
            "description": "The ID of the assistant to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status",
        "properties": []
      }
    ]
  },
  {
    "title": "The assistant object",
    "description": "Represents an `assistant` that can call the model and use tools.",
    "canonical": "assistants/object",
    "definitions": [
      {
        "title": "AssistantObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `assistant`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "assistant"
              }
            ],
            "properties": [
              {
                "name": "assistant",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the assistant was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the assistant. The maximum length is 256 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "description",
            "type": "string",
            "description": "The description of the assistant. The maximum length is 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "instructions",
            "type": "string",
            "description": "The system instructions that the assistant uses. The maximum length is 256,000 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "tools",
            "type": "$$array",
            "description": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": []
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "Code interpreter tool",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantToolsCode",
                    "canonical": "objects/AssistantToolsCode",
                    "label": "AssistantToolsCode"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of tool being defined: `code_interpreter`",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "code_interpreter"
                        }
                      ],
                      "properties": [
                        {
                          "name": "code_interpreter",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "FileSearch tool",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantToolsFileSearch",
                    "canonical": "objects/AssistantToolsFileSearch",
                    "label": "AssistantToolsFileSearch"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of tool being defined: `file_search`",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "file_search"
                        }
                      ],
                      "properties": [
                        {
                          "name": "file_search",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "file_search",
                      "type": "object",
                      "description": "Overrides for the file search tool.",
                      "meta": [],
                      "properties": [
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                          "meta": [
                            {
                              "name": "maximum",
                              "value": 50
                            },
                            {
                              "name": "minimum",
                              "value": 1
                            }
                          ]
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/FileSearchRankingOptions",
                            "canonical": "objects/FileSearchRankingOptions",
                            "label": "FileSearchRankingOptions"
                          },
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default_2024_08_21",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchRanker",
                                "canonical": "objects/FileSearchRanker",
                                "label": "FileSearchRanker"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "maximum",
                                  "value": 1
                                },
                                {
                                  "name": "minimum",
                                  "value": 0
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Function tool",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantToolsFunction",
                    "canonical": "objects/AssistantToolsFunction",
                    "label": "AssistantToolsFunction"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of tool being defined: `function`",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "function",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionObject",
                        "canonical": "objects/FunctionObject",
                        "label": "FunctionObject"
                      },
                      "properties": [
                        {
                          "name": "description",
                          "type": "string",
                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                          "meta": []
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "object",
                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionParameters",
                            "canonical": "objects/FunctionParameters",
                            "label": "FunctionParameters"
                          }
                        },
                        {
                          "name": "strict",
                          "type": "boolean",
                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": false
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "tool_resources",
            "type": "object",
            "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code_interpreter",
                "type": "object",
                "description": "",
                "meta": [],
                "properties": [
                  {
                    "name": "file_ids",
                    "type": "$$array",
                    "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": []
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              },
              {
                "name": "file_search",
                "type": "object",
                "description": "",
                "meta": [],
                "properties": [
                  {
                    "name": "vector_store_ids",
                    "type": "$$array",
                    "description": "The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n",
                    "meta": [],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          },
          {
            "name": "temperature",
            "type": "number",
            "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 1
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "example",
                "value": 1
              },
              {
                "name": "maximum",
                "value": 2
              },
              {
                "name": "minimum",
                "value": 0
              }
            ]
          },
          {
            "name": "top_p",
            "type": "number",
            "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 1
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "example",
                "value": 1
              },
              {
                "name": "maximum",
                "value": 1
              },
              {
                "name": "minimum",
                "value": 0
              }
            ]
          },
          {
            "name": "response_format",
            "type": "$$xor",
            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
            "properties": [
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "`auto` is the default value\n",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "auto"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "Text",
                "type": "object",
                "description": "Default response format. Used to generate text responses.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseFormatText",
                  "canonical": "objects/ResponseFormatText",
                  "label": "ResponseFormatText"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of response format being defined. Always `text`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "text"
                      }
                    ],
                    "properties": [
                      {
                        "name": "text",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "JSON object",
                "type": "object",
                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseFormatJsonObject",
                  "canonical": "objects/ResponseFormatJsonObject",
                  "label": "ResponseFormatJsonObject"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of response format being defined. Always `json_object`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "json_object"
                      }
                    ],
                    "properties": [
                      {
                        "name": "json_object",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "JSON schema",
                "type": "object",
                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                  "canonical": "objects/ResponseFormatJsonSchema",
                  "label": "ResponseFormatJsonSchema"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of response format being defined. Always `json_schema`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "json_schema"
                      }
                    ],
                    "properties": [
                      {
                        "name": "json_schema",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "json_schema",
                    "type": "object",
                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "description",
                        "type": "string",
                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                        "meta": []
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "schema",
                        "type": "object",
                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                          "label": "ResponseFormatJsonSchemaSchema"
                        }
                      },
                      {
                        "name": "strict",
                        "type": "boolean",
                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": false
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/AssistantObject",
          "canonical": "objects/AssistantObject",
          "label": "assistant"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"asst_abc123\",\n  \"object\": \"assistant\",\n  \"created_at\": 1698984975,\n  \"name\": \"Math Tutor\",\n  \"description\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You are a personal math tutor. When asked a question, write and run Python code to answer the question.\",\n  \"tools\": [\n    {\n      \"type\": \"code_interpreter\"\n    }\n  ],\n  \"metadata\": {},\n  \"top_p\": 1.0,\n  \"temperature\": 1.0,\n  \"response_format\": \"auto\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "AssistantObject",
      "group": [
        "Assistants",
        "Assistants"
      ]
    }
  },
  {
    "title": "Create thread",
    "canonical": "threads/createThread",
    "description": "Create a thread.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads",
      "group": [
        "Assistants",
        "Threads"
      ],
      "fullPath": "https://api.openai.com/v1/threads",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Empty",
              "codeblock": {
                "title": "Empty",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d ''\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nempty_thread = client.beta.threads.create()\nprint(empty_thread)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const emptyThread = await openai.beta.threads.create();\n\n  console.log(emptyThread);\n}\n\nmain();"
                  }
                ]
              }
            },
            {
              "description": "Messages",
              "codeblock": {
                "title": "Messages",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n-H \"OpenAI-Beta: assistants=v2\" \\\n-d '{\n    \"messages\": [{\n      \"role\": \"user\",\n      \"content\": \"Hello, what is AI?\"\n    }, {\n      \"role\": \"user\",\n      \"content\": \"How does AI work? Explain it in simple terms.\"\n    }]\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmessage_thread = client.beta.threads.create(\n  messages=[\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello, what is AI?\"\n    },\n    {\n      \"role\": \"user\",\n      \"content\": \"How does AI work? Explain it in simple terms.\"\n    },\n  ]\n)\n\nprint(message_thread)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const messageThread = await openai.beta.threads.create({\n    messages: [\n      {\n        role: \"user\",\n        content: \"Hello, what is AI?\"\n      },\n      {\n        role: \"user\",\n        content: \"How does AI work? Explain it in simple terms.\",\n      },\n    ],\n  });\n\n  console.log(messageThread);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Empty",
              "codeblock": {
                "title": "Empty",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"thread_abc123\",\n  \"object\": \"thread\",\n  \"created_at\": 1699012949,\n  \"metadata\": {},\n  \"tool_resources\": {}\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Messages",
              "codeblock": {
                "title": "Messages",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"thread_abc123\",\n  \"object\": \"thread\",\n  \"created_at\": 1699014083,\n  \"metadata\": {},\n  \"tool_resources\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "Options to create a new thread. If no thread is provided when running a \nrequest, an empty thread will be created.\n",
            "properties": [
              {
                "name": "messages",
                "type": "$$array",
                "description": "A list of [messages](/docs/api-reference/messages) to start the thread with.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The text contents of the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](/docs/models).",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Image file",
                                "type": "object",
                                "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageContentImageFileObject",
                                  "canonical": "objects/MessageContentImageFileObject",
                                  "label": "MessageContentImageFileObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `image_file`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "image_file"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "image_file",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "image_file",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "detail",
                                        "type": "$$enum",
                                        "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": "auto"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "auto",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "low",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "high",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Image URL",
                                "type": "object",
                                "description": "References an image URL in the content of a message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageContentImageUrlObject",
                                  "canonical": "objects/MessageContentImageUrlObject",
                                  "label": "MessageContentImageUrlObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "image_url"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "image_url",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "image_url",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "url",
                                        "type": "string",
                                        "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "detail",
                                        "type": "$$enum",
                                        "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": "auto"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "auto",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "low",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "high",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "The text content that is part of a message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageRequestContentTextObject",
                                  "canonical": "objects/MessageRequestContentTextObject",
                                  "label": "MessageRequestContentTextObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "Text content to be sent to the model",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "attachments",
                      "type": "$$array",
                      "description": "A list of files attached to the message, and the tools they should be added to.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "file_id",
                            "type": "string",
                            "description": "The ID of the file to attach to the message.",
                            "meta": []
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The tools to add this file to.",
                            "meta": [],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                    "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                    "label": "AssistantToolsFileSearchTypeOnly"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": []
                            }
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "metadata",
                      "type": "object",
                      "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/Metadata",
                        "canonical": "objects/Metadata",
                        "label": "Metadata"
                      }
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/CreateMessageRequest",
                    "canonical": "objects/CreateMessageRequest",
                    "label": "CreateMessageRequest"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/CreateMessageRequest",
                  "canonical": "objects/CreateMessageRequest",
                  "label": "CreateMessageRequest"
                }
              },
              {
                "name": "tool_resources",
                "type": "object",
                "description": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "code_interpreter",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "file_ids",
                        "type": "$$array",
                        "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": []
                          }
                        ],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  },
                  {
                    "name": "file_search",
                    "type": "$$xor",
                    "description": "",
                    "properties": [
                      {
                        "name": "file_search",
                        "type": "object",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "file_search",
                        "type": "object",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "meta": []
                  }
                ]
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateThreadRequest",
              "canonical": "objects/CreateThreadRequest",
              "label": "CreateThreadRequest"
            }
          }
        ],
        "properties": [],
        "meta": [],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [thread](/docs/api-reference/threads) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve thread",
    "canonical": "threads/getThread",
    "description": "Retrieves a thread.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}",
      "group": [
        "Assistants",
        "Threads"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_thread = client.beta.threads.retrieve(\"thread_abc123\")\nprint(my_thread)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const myThread = await openai.beta.threads.retrieve(\n    \"thread_abc123\"\n  );\n\n  console.log(myThread);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"thread_abc123\",\n  \"object\": \"thread\",\n  \"created_at\": 1699014083,\n  \"metadata\": {},\n  \"tool_resources\": {\n    \"code_interpreter\": {\n      \"file_ids\": []\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [thread](/docs/api-reference/threads/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify thread",
    "canonical": "threads/modifyThread",
    "description": "Modifies a thread.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}",
      "group": [
        "Assistants",
        "Threads"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n      \"metadata\": {\n        \"modified\": \"true\",\n        \"user\": \"abc123\"\n      }\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmy_updated_thread = client.beta.threads.update(\n  \"thread_abc123\",\n  metadata={\n    \"modified\": \"true\",\n    \"user\": \"abc123\"\n  }\n)\nprint(my_updated_thread)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const updatedThread = await openai.beta.threads.update(\n    \"thread_abc123\",\n    {\n      metadata: { modified: \"true\", user: \"abc123\" },\n    }\n  );\n\n  console.log(updatedThread);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"thread_abc123\",\n  \"object\": \"thread\",\n  \"created_at\": 1699014083,\n  \"metadata\": {\n    \"modified\": \"true\",\n    \"user\": \"abc123\"\n  },\n  \"tool_resources\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to modify. Only the `metadata` can be modified.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "tool_resources",
                "type": "object",
                "description": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "code_interpreter",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "file_ids",
                        "type": "$$array",
                        "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": []
                          }
                        ],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  },
                  {
                    "name": "file_search",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "vector_store_ids",
                        "type": "$$array",
                        "description": "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n",
                        "meta": [],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ModifyThreadRequest",
              "canonical": "objects/ModifyThreadRequest",
              "label": "ModifyThreadRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The modified [thread](/docs/api-reference/threads/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete thread",
    "canonical": "threads/deleteThread",
    "description": "Delete a thread.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/threads/{thread_id}",
      "group": [
        "Assistants",
        "Threads"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -X DELETE\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nresponse = client.beta.threads.delete(\"thread_abc123\")\nprint(response)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const response = await openai.beta.threads.del(\"thread_abc123\");\n\n  console.log(response);\n}\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"thread_abc123\",\n  \"object\": \"thread.deleted\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status",
        "properties": []
      }
    ]
  },
  {
    "title": "The thread object",
    "description": "Represents a thread that contains [messages](/docs/api-reference/messages).",
    "canonical": "threads/object",
    "definitions": [
      {
        "title": "ThreadObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `thread`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "thread"
              }
            ],
            "properties": [
              {
                "name": "thread",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the thread was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "tool_resources",
            "type": "object",
            "description": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code_interpreter",
                "type": "object",
                "description": "",
                "meta": [],
                "properties": [
                  {
                    "name": "file_ids",
                    "type": "$$array",
                    "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": []
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              },
              {
                "name": "file_search",
                "type": "object",
                "description": "",
                "meta": [],
                "properties": [
                  {
                    "name": "vector_store_ids",
                    "type": "$$array",
                    "description": "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n",
                    "meta": [],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ThreadObject",
          "canonical": "objects/ThreadObject",
          "label": "thread"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"thread_abc123\",\n  \"object\": \"thread\",\n  \"created_at\": 1698107661,\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ThreadObject",
      "group": [
        "Assistants",
        "Threads"
      ]
    }
  },
  {
    "title": "Create message",
    "canonical": "messages/createMessage",
    "description": "Create a message.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}/messages",
      "group": [
        "Assistants",
        "Messages"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/messages",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/messages \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n      \"role\": \"user\",\n      \"content\": \"How does AI work? Explain it in simple terms.\"\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nthread_message = client.beta.threads.messages.create(\n  \"thread_abc123\",\n  role=\"user\",\n  content=\"How does AI work? Explain it in simple terms.\",\n)\nprint(thread_message)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const threadMessages = await openai.beta.threads.messages.create(\n    \"thread_abc123\",\n    { role: \"user\", content: \"How does AI work? Explain it in simple terms.\" }\n  );\n\n  console.log(threadMessages);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"msg_abc123\",\n  \"object\": \"thread.message\",\n  \"created_at\": 1713226573,\n  \"assistant_id\": null,\n  \"thread_id\": \"thread_abc123\",\n  \"run_id\": null,\n  \"role\": \"user\",\n  \"content\": [\n    {\n      \"type\": \"text\",\n      \"text\": {\n        \"value\": \"How does AI work? Explain it in simple terms.\",\n        \"annotations\": []\n      }\n    }\n  ],\n  \"attachments\": [],\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) to create a message for.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "role",
                "type": "$$enum",
                "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$xor",
                "description": "",
                "properties": [
                  {
                    "name": "Text content",
                    "type": "string",
                    "description": "The text contents of the message.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "Array of content parts",
                    "type": "$$array",
                    "description": "An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](/docs/models).",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "Image file",
                          "type": "object",
                          "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/MessageContentImageFileObject",
                            "canonical": "objects/MessageContentImageFileObject",
                            "label": "MessageContentImageFileObject"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Always `image_file`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "image_file"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "image_file",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "image_file",
                              "type": "object",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "file_id",
                                  "type": "string",
                                  "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "detail",
                                  "type": "$$enum",
                                  "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                  "meta": [
                                    {
                                      "name": "defaults",
                                      "value": "auto"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "low",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "high",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Image URL",
                          "type": "object",
                          "description": "References an image URL in the content of a message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/MessageContentImageUrlObject",
                            "canonical": "objects/MessageContentImageUrlObject",
                            "label": "MessageContentImageUrlObject"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of the content part.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "image_url"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "image_url",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "image_url",
                              "type": "object",
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "url",
                                  "type": "string",
                                  "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "detail",
                                  "type": "$$enum",
                                  "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                  "meta": [
                                    {
                                      "name": "defaults",
                                      "value": "auto"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "low",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "high",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Text",
                          "type": "object",
                          "description": "The text content that is part of a message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/MessageRequestContentTextObject",
                            "canonical": "objects/MessageRequestContentTextObject",
                            "label": "MessageRequestContentTextObject"
                          },
                          "properties": [
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "Always `text`.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "text"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "text",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "text",
                              "type": "string",
                              "description": "Text content to be sent to the model",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "attachments",
                "type": "$$array",
                "description": "A list of files attached to the message, and the tools they should be added to.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "file_id",
                      "type": "string",
                      "description": "The ID of the file to attach to the message.",
                      "meta": []
                    },
                    {
                      "name": "tools",
                      "type": "$$array",
                      "description": "The tools to add this file to.",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "$$xor",
                        "properties": [
                          {
                            "name": "Code interpreter tool",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantToolsCode",
                              "canonical": "objects/AssistantToolsCode",
                              "label": "AssistantToolsCode"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of tool being defined: `code_interpreter`",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "code_interpreter"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "code_interpreter",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "FileSearch tool",
                            "type": "object",
                            "description": "",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                              "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                              "label": "AssistantToolsFileSearchTypeOnly"
                            },
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The type of tool being defined: `file_search`",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "file_search"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "file_search",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateMessageRequest",
              "canonical": "objects/CreateMessageRequest",
              "label": "CreateMessageRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [message](/docs/api-reference/messages/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List messages",
    "canonical": "messages/listMessages",
    "description": "Returns a list of messages for a given thread.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}/messages",
      "group": [
        "Assistants",
        "Messages"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/messages",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/messages \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nthread_messages = client.beta.threads.messages.list(\"thread_abc123\")\nprint(thread_messages.data)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const threadMessages = await openai.beta.threads.messages.list(\n    \"thread_abc123\"\n  );\n\n  console.log(threadMessages.data);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"msg_abc123\",\n      \"object\": \"thread.message\",\n      \"created_at\": 1699016383,\n      \"assistant_id\": null,\n      \"thread_id\": \"thread_abc123\",\n      \"run_id\": null,\n      \"role\": \"user\",\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": {\n            \"value\": \"How does AI work? Explain it in simple terms.\",\n            \"annotations\": []\n          }\n        }\n      ],\n      \"attachments\": [],\n      \"metadata\": {}\n    },\n    {\n      \"id\": \"msg_abc456\",\n      \"object\": \"thread.message\",\n      \"created_at\": 1699016383,\n      \"assistant_id\": null,\n      \"thread_id\": \"thread_abc123\",\n      \"run_id\": null,\n      \"role\": \"user\",\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": {\n            \"value\": \"Hello, what is AI?\",\n            \"annotations\": []\n          }\n        }\n      ],\n      \"attachments\": [],\n      \"metadata\": {}\n    }\n  ],\n  \"first_id\": \"msg_abc123\",\n  \"last_id\": \"msg_abc456\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) the messages belong to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "Filter messages by the run ID that generated them.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [message](/docs/api-reference/messages) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve message",
    "canonical": "messages/getMessage",
    "description": "Retrieve a message.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}/messages/{message_id}",
      "group": [
        "Assistants",
        "Messages"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/messages/msg_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmessage = client.beta.threads.messages.retrieve(\n  message_id=\"msg_abc123\",\n  thread_id=\"thread_abc123\",\n)\nprint(message)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const message = await openai.beta.threads.messages.retrieve(\n    \"thread_abc123\",\n    \"msg_abc123\"\n  );\n\n  console.log(message);\n}\n\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"msg_abc123\",\n  \"object\": \"thread.message\",\n  \"created_at\": 1699017614,\n  \"assistant_id\": null,\n  \"thread_id\": \"thread_abc123\",\n  \"run_id\": null,\n  \"role\": \"user\",\n  \"content\": [\n    {\n      \"type\": \"text\",\n      \"text\": {\n        \"value\": \"How does AI work? Explain it in simple terms.\",\n        \"annotations\": []\n      }\n    }\n  ],\n  \"attachments\": [],\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) to which this message belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "message_id",
            "type": "string",
            "description": "The ID of the message to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [message](/docs/api-reference/messages/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify message",
    "canonical": "messages/modifyMessage",
    "description": "Modifies a message.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}/messages/{message_id}",
      "group": [
        "Assistants",
        "Messages"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/messages/msg_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n      \"metadata\": {\n        \"modified\": \"true\",\n        \"user\": \"abc123\"\n      }\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nmessage = client.beta.threads.messages.update(\n  message_id=\"msg_abc12\",\n  thread_id=\"thread_abc123\",\n  metadata={\n    \"modified\": \"true\",\n    \"user\": \"abc123\",\n  },\n)\nprint(message)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const message = await openai.beta.threads.messages.update(\n    \"thread_abc123\",\n    \"msg_abc123\",\n    {\n      metadata: {\n        modified: \"true\",\n        user: \"abc123\",\n      },\n    }\n  }'"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"msg_abc123\",\n  \"object\": \"thread.message\",\n  \"created_at\": 1699017614,\n  \"assistant_id\": null,\n  \"thread_id\": \"thread_abc123\",\n  \"run_id\": null,\n  \"role\": \"user\",\n  \"content\": [\n    {\n      \"type\": \"text\",\n      \"text\": {\n        \"value\": \"How does AI work? Explain it in simple terms.\",\n        \"annotations\": []\n      }\n    }\n  ],\n  \"file_ids\": [],\n  \"metadata\": {\n    \"modified\": \"true\",\n    \"user\": \"abc123\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to which this message belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "message_id",
            "type": "string",
            "description": "The ID of the message to modify.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ModifyMessageRequest",
              "canonical": "objects/ModifyMessageRequest",
              "label": "ModifyMessageRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The modified [message](/docs/api-reference/messages/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete message",
    "canonical": "messages/deleteMessage",
    "description": "Deletes a message.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/threads/{thread_id}/messages/{message_id}",
      "group": [
        "Assistants",
        "Messages"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/threads/thread_abc123/messages/msg_abc123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ndeleted_message = client.beta.threads.messages.delete(\n  message_id=\"msg_abc12\",\n  thread_id=\"thread_abc123\",\n)\nprint(deleted_message)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const deletedMessage = await openai.beta.threads.messages.del(\n    \"thread_abc123\",\n    \"msg_abc123\"\n  );\n\n  console.log(deletedMessage);\n}"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"msg_abc123\",\n  \"object\": \"thread.message.deleted\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to which this message belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "message_id",
            "type": "string",
            "description": "The ID of the message to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Deletion status",
        "properties": []
      }
    ]
  },
  {
    "title": "The message object",
    "description": "Represents a message within a [thread](/docs/api-reference/threads).",
    "canonical": "messages/object",
    "definitions": [
      {
        "title": "MessageObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `thread.message`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "thread.message"
              }
            ],
            "properties": [
              {
                "name": "thread.message",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the message was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "thread_id",
            "type": "string",
            "description": "The [thread](/docs/api-reference/threads) ID that this message belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "incomplete",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "incomplete_details",
            "type": "object",
            "description": "On an incomplete message, details about why the message is incomplete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "reason",
                "type": "$$enum",
                "description": "The reason the message is incomplete.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "content_filter",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_tokens",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "run_cancelled",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "run_expired",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "run_failed",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ]
          },
          {
            "name": "completed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the message was completed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "incomplete_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the message was marked as incomplete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "role",
            "type": "$$enum",
            "description": "The entity that produced the message. One of `user` or `assistant`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "user",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "assistant",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "content",
            "type": "$$array",
            "description": "The content of the message in array of text and/or images.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "Image file",
                  "type": "object",
                  "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/MessageContentImageFileObject",
                    "canonical": "objects/MessageContentImageFileObject",
                    "label": "MessageContentImageFileObject"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "Always `image_file`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "image_file"
                        }
                      ],
                      "properties": [
                        {
                          "name": "image_file",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "image_file",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "file_id",
                          "type": "string",
                          "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "detail",
                          "type": "$$enum",
                          "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": "auto"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "auto",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Image URL",
                  "type": "object",
                  "description": "References an image URL in the content of a message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/MessageContentImageUrlObject",
                    "canonical": "objects/MessageContentImageUrlObject",
                    "label": "MessageContentImageUrlObject"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the content part.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "image_url"
                        }
                      ],
                      "properties": [
                        {
                          "name": "image_url",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "image_url",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "url",
                          "type": "string",
                          "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "detail",
                          "type": "$$enum",
                          "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": "auto"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "auto",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "low",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "high",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Text",
                  "type": "object",
                  "description": "The text content that is part of a message.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/MessageContentTextObject",
                    "canonical": "objects/MessageContentTextObject",
                    "label": "MessageContentTextObject"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "Always `text`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "text"
                        }
                      ],
                      "properties": [
                        {
                          "name": "text",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "text",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "properties": [
                        {
                          "name": "value",
                          "type": "string",
                          "description": "The data that makes up the text.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "annotations",
                          "type": "$$array",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "File citation",
                                "type": "object",
                                "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageContentTextAnnotationsFileCitationObject",
                                  "canonical": "objects/MessageContentTextAnnotationsFileCitationObject",
                                  "label": "MessageContentTextAnnotationsFileCitationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `file_citation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "file_citation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file_citation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text in the message content that needs to be replaced.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "file_citation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the specific File the citation is from.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "start_index",
                                    "type": "integer",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "minimum",
                                        "value": 0
                                      }
                                    ]
                                  },
                                  {
                                    "name": "end_index",
                                    "type": "integer",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "minimum",
                                        "value": 0
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "File path",
                                "type": "object",
                                "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageContentTextAnnotationsFilePathObject",
                                  "canonical": "objects/MessageContentTextAnnotationsFilePathObject",
                                  "label": "MessageContentTextAnnotationsFilePathObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `file_path`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "file_path"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file_path",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "The text in the message content that needs to be replaced.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  },
                                  {
                                    "name": "file_path",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the file that was generated.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "start_index",
                                    "type": "integer",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "minimum",
                                        "value": 0
                                      }
                                    ]
                                  },
                                  {
                                    "name": "end_index",
                                    "type": "integer",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "minimum",
                                        "value": 0
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Refusal",
                  "type": "object",
                  "description": "The refusal content generated by the assistant.",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/MessageContentRefusalObject",
                    "canonical": "objects/MessageContentRefusalObject",
                    "label": "MessageContentRefusalObject"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "Always `refusal`.",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "refusal"
                        }
                      ],
                      "properties": [
                        {
                          "name": "refusal",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "refusal",
                      "type": "string",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "assistant_id",
            "type": "string",
            "description": "If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "attachments",
            "type": "$$array",
            "description": "A list of files attached to the message, and the tools they were added to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "file_id",
                  "type": "string",
                  "description": "The ID of the file to attach to the message.",
                  "meta": []
                },
                {
                  "name": "tools",
                  "type": "$$array",
                  "description": "The tools to add this file to.",
                  "meta": [],
                  "properties": [],
                  "ofProperty": {
                    "name": "",
                    "type": "$$xor",
                    "properties": [
                      {
                        "name": "Code interpreter tool",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/AssistantToolsCode",
                          "canonical": "objects/AssistantToolsCode",
                          "label": "AssistantToolsCode"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of tool being defined: `code_interpreter`",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "code_interpreter"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code_interpreter",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      },
                      {
                        "name": "FileSearch tool",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                          "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                          "label": "AssistantToolsFileSearchTypeOnly"
                        },
                        "properties": [
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of tool being defined: `file_search`",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "file_search"
                              }
                            ],
                            "properties": [
                              {
                                "name": "file_search",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          }
                        ]
                      }
                    ],
                    "description": "",
                    "meta": []
                  }
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/MessageObject",
          "canonical": "objects/MessageObject",
          "label": "thread.message"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"msg_abc123\",\n  \"object\": \"thread.message\",\n  \"created_at\": 1698983503,\n  \"thread_id\": \"thread_abc123\",\n  \"role\": \"assistant\",\n  \"content\": [\n    {\n      \"type\": \"text\",\n      \"text\": {\n        \"value\": \"Hi! How can I help you today?\",\n        \"annotations\": []\n      }\n    }\n  ],\n  \"assistant_id\": \"asst_abc123\",\n  \"run_id\": \"run_abc123\",\n  \"attachments\": [],\n  \"metadata\": {}\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "MessageObject",
      "group": [
        "Assistants",
        "Messages"
      ]
    }
  },
  {
    "title": "Create run",
    "canonical": "runs/createRun",
    "description": "Create a run.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}/runs",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"assistant_id\": \"asst_abc123\"\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun = client.beta.threads.runs.create(\n  thread_id=\"thread_abc123\",\n  assistant_id=\"asst_abc123\"\n)\n\nprint(run)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const run = await openai.beta.threads.runs.create(\n    \"thread_abc123\",\n    { assistant_id: \"asst_abc123\" }\n  );\n\n  console.log(run);\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_123/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"assistant_id\": \"asst_123\",\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nstream = client.beta.threads.runs.create(\n  thread_id=\"thread_123\",\n  assistant_id=\"asst_123\",\n  stream=True\n)\n\nfor event in stream:\n  print(event)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const stream = await openai.beta.threads.runs.create(\n    \"thread_123\",\n    { assistant_id: \"asst_123\", stream: true }\n  );\n\n  for await (const event of stream) {\n    console.log(event);\n  }\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming with Functions",
              "codeblock": {
                "title": "Streaming with Functions",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"assistant_id\": \"asst_abc123\",\n    \"tools\": [\n      {\n        \"type\": \"function\",\n        \"function\": {\n          \"name\": \"get_current_weather\",\n          \"description\": \"Get the current weather in a given location\",\n          \"parameters\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"location\": {\n                \"type\": \"string\",\n                \"description\": \"The city and state, e.g. San Francisco, CA\"\n              },\n              \"unit\": {\n                \"type\": \"string\",\n                \"enum\": [\"celsius\", \"fahrenheit\"]\n              }\n            },\n            \"required\": [\"location\"]\n          }\n        }\n      }\n    ],\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ntools = [\n  {\n    \"type\": \"function\",\n    \"function\": {\n      \"name\": \"get_current_weather\",\n      \"description\": \"Get the current weather in a given location\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"location\": {\n            \"type\": \"string\",\n            \"description\": \"The city and state, e.g. San Francisco, CA\",\n          },\n          \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n        },\n        \"required\": [\"location\"],\n      },\n    }\n  }\n]\n\nstream = client.beta.threads.runs.create(\n  thread_id=\"thread_abc123\",\n  assistant_id=\"asst_abc123\",\n  tools=tools,\n  stream=True\n)\n\nfor event in stream:\n  print(event)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst tools = [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather in a given location\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n              \"type\": \"string\",\n              \"description\": \"The city and state, e.g. San Francisco, CA\",\n            },\n            \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n          },\n          \"required\": [\"location\"],\n        },\n      }\n    }\n];\n\nasync function main() {\n  const stream = await openai.beta.threads.runs.create(\n    \"thread_abc123\",\n    {\n      assistant_id: \"asst_abc123\",\n      tools: tools,\n      stream: true\n    }\n  );\n\n  for await (const event of stream) {\n    console.log(event);\n  }\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_abc123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1699063290,\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"status\": \"queued\",\n  \"started_at\": 1699063290,\n  \"expires_at\": null,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": 1699063291,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": null,\n  \"incomplete_details\": null,\n  \"tools\": [\n    {\n      \"type\": \"code_interpreter\"\n    }\n  ],\n  \"metadata\": {},\n  \"usage\": null,\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"max_prompt_tokens\": 1000,\n  \"max_completion_tokens\": 1000,\n  \"truncation_strategy\": {\n    \"type\": \"auto\",\n    \"last_messages\": null\n  },\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "event: thread.run.created\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710330640,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710331240,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.queued\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710330640,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710331240,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.in_progress\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710330640,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"in_progress\",\"started_at\":1710330641,\"expires_at\":1710331240,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.step.created\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710330641,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710331240,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":null}\n\nevent: thread.run.step.in_progress\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710330641,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710331240,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":null}\n\nevent: thread.message.created\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710330641,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[],\"metadata\":{}}\n\nevent: thread.message.in_progress\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710330641,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[],\"metadata\":{}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"Hello\",\"annotations\":[]}}]}}\n\n...\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\" today\"}}]}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"?\"}}]}}\n\nevent: thread.message.completed\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710330641,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"completed\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":1710330642,\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":{\"value\":\"Hello! How can I assist you today?\",\"annotations\":[]}}],\"metadata\":{}}\n\nevent: thread.run.step.completed\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710330641,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"completed\",\"cancelled_at\":null,\"completed_at\":1710330642,\"expires_at\":1710331240,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":11,\"total_tokens\":31}}\n\nevent: thread.run.completed\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710330640,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"completed\",\"started_at\":1710330641,\"expires_at\":null,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":1710330642,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":11,\"total_tokens\":31},\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: done\ndata: [DONE]\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming with Functions",
              "codeblock": {
                "title": "Streaming with Functions",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "event: thread.run.created\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710348675,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.queued\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710348675,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.in_progress\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"in_progress\",\"started_at\":1710348075,\"expires_at\":1710348675,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.step.created\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710348076,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710348675,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":null}\n\nevent: thread.run.step.in_progress\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710348076,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710348675,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":null}\n\nevent: thread.message.created\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[],\"metadata\":{}}\n\nevent: thread.message.in_progress\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[],\"metadata\":{}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"Hello\",\"annotations\":[]}}]}}\n\n...\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\" today\"}}]}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"?\"}}]}}\n\nevent: thread.message.completed\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"completed\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":1710348077,\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":{\"value\":\"Hello! How can I assist you today?\",\"annotations\":[]}}],\"metadata\":{}}\n\nevent: thread.run.step.completed\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710348076,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"completed\",\"cancelled_at\":null,\"completed_at\":1710348077,\"expires_at\":1710348675,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":11,\"total_tokens\":31}}\n\nevent: thread.run.completed\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"completed\",\"started_at\":1710348075,\"expires_at\":null,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":1710348077,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":11,\"total_tokens\":31},\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: done\ndata: [DONE]\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "include[]",
            "type": "$$array",
            "description": "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "step_details.tool_calls[*].file_search.results[*].content",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                },
                {
                  "name": "const",
                  "value": "step_details.tool_calls[*].file_search.results[*].content"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "assistant_id",
                "type": "string",
                "description": "The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o3-mini-2025-01-31",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "o1-2024-12-17",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview-2025-02-27",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/AssistantSupportedModels",
                      "canonical": "objects/AssistantSupportedModels",
                      "label": "AssistantSupportedModels"
                    }
                  }
                ]
              },
              {
                "name": "reasoning_effort",
                "type": "$$enum",
                "description": "**o-series models only** \n\nConstrains effort on reasoning for \n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": "medium"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "low",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "medium",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "high",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                },
                "symbolDef": {
                  "id": "#/components/schemas/ReasoningEffort",
                  "canonical": "objects/ReasoningEffort",
                  "label": "ReasoningEffort"
                }
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "additional_instructions",
                "type": "string",
                "description": "Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "additional_messages",
                "type": "$$array",
                "description": "Adds additional messages to the thread before creating the run.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "user",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "assistant",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "content",
                      "type": "$$xor",
                      "description": "",
                      "properties": [
                        {
                          "name": "Text content",
                          "type": "string",
                          "description": "The text contents of the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "Array of content parts",
                          "type": "$$array",
                          "description": "An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](/docs/models).",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "$$xor",
                            "properties": [
                              {
                                "name": "Image file",
                                "type": "object",
                                "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageContentImageFileObject",
                                  "canonical": "objects/MessageContentImageFileObject",
                                  "label": "MessageContentImageFileObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `image_file`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "image_file"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "image_file",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "image_file",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "detail",
                                        "type": "$$enum",
                                        "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": "auto"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "auto",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "low",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "high",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Image URL",
                                "type": "object",
                                "description": "References an image URL in the content of a message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageContentImageUrlObject",
                                  "canonical": "objects/MessageContentImageUrlObject",
                                  "label": "MessageContentImageUrlObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of the content part.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "image_url"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "image_url",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "image_url",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "url",
                                        "type": "string",
                                        "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "detail",
                                        "type": "$$enum",
                                        "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": "auto"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "auto",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "low",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          },
                                          {
                                            "name": "high",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "The text content that is part of a message.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/MessageRequestContentTextObject",
                                  "canonical": "objects/MessageRequestContentTextObject",
                                  "label": "MessageRequestContentTextObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "text",
                                    "type": "string",
                                    "description": "Text content to be sent to the model",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "description": "",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          }
                        }
                      ],
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "attachments",
                      "type": "$$array",
                      "description": "A list of files attached to the message, and the tools they should be added to.",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [
                          {
                            "name": "file_id",
                            "type": "string",
                            "description": "The ID of the file to attach to the message.",
                            "meta": []
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The tools to add this file to.",
                            "meta": [],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                    "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                    "label": "AssistantToolsFileSearchTypeOnly"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": []
                            }
                          }
                        ],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "metadata",
                      "type": "object",
                      "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                      "meta": [
                        {
                          "name": "nullable",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/Metadata",
                        "canonical": "objects/Metadata",
                        "label": "Metadata"
                      }
                    }
                  ],
                  "description": "",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/CreateMessageRequest",
                    "canonical": "objects/CreateMessageRequest",
                    "label": "CreateMessageRequest"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/CreateMessageRequest",
                  "canonical": "objects/CreateMessageRequest",
                  "label": "CreateMessageRequest"
                }
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "Code interpreter tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsCode",
                        "canonical": "objects/AssistantToolsCode",
                        "label": "AssistantToolsCode"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `code_interpreter`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "code_interpreter"
                            }
                          ],
                          "properties": [
                            {
                              "name": "code_interpreter",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "FileSearch tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFileSearch",
                        "canonical": "objects/AssistantToolsFileSearch",
                        "label": "AssistantToolsFileSearch"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `file_search`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "file_search",
                          "type": "object",
                          "description": "Overrides for the file search tool.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "max_num_results",
                              "type": "integer",
                              "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [
                                {
                                  "name": "maximum",
                                  "value": 50
                                },
                                {
                                  "name": "minimum",
                                  "value": 1
                                }
                              ]
                            },
                            {
                              "name": "ranking_options",
                              "type": "object",
                              "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchRankingOptions",
                                "canonical": "objects/FileSearchRankingOptions",
                                "label": "FileSearchRankingOptions"
                              },
                              "properties": [
                                {
                                  "name": "ranker",
                                  "type": "$$enum",
                                  "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "default_2024_08_21",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/FileSearchRanker",
                                    "canonical": "objects/FileSearchRanker",
                                    "label": "FileSearchRanker"
                                  }
                                },
                                {
                                  "name": "score_threshold",
                                  "type": "number",
                                  "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "maximum",
                                      "value": 1
                                    },
                                    {
                                      "name": "minimum",
                                      "value": 0
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFunction",
                        "canonical": "objects/AssistantToolsFunction",
                        "label": "AssistantToolsFunction"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `function`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionObject",
                            "canonical": "objects/FunctionObject",
                            "label": "FunctionObject"
                          },
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                              "meta": []
                            },
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FunctionParameters",
                                "canonical": "objects/FunctionParameters",
                                "label": "FunctionParameters"
                              }
                            },
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                              "meta": [
                                {
                                  "name": "defaults",
                                  "value": false
                                },
                                {
                                  "name": "nullable",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "max_prompt_tokens",
                "type": "integer",
                "description": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "minimum",
                    "value": 256
                  }
                ]
              },
              {
                "name": "max_completion_tokens",
                "type": "integer",
                "description": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "minimum",
                    "value": 256
                  }
                ]
              },
              {
                "name": "truncation_strategy",
                "type": "object",
                "description": "",
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "last_messages",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "last_messages",
                    "type": "integer",
                    "description": "The number of most recent messages from the thread when constructing the context for the run.",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "minimum",
                        "value": 1
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/TruncationObject",
                  "canonical": "objects/TruncationObject",
                  "label": "TruncationObject"
                }
              },
              {
                "name": "tool_choice",
                "type": "",
                "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                "properties": [],
                "meta": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                  "properties": [
                    {
                      "name": "",
                      "type": "$$enum",
                      "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "none",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "auto",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "required",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "",
                      "type": "object",
                      "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantsNamedToolChoice",
                        "canonical": "objects/AssistantsNamedToolChoice",
                        "label": "AssistantsNamedToolChoice"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the tool. If type is `function`, the function name must be set",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "code_interpreter",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "",
                          "meta": [],
                          "properties": [
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                    "canonical": "objects/AssistantsApiToolChoiceOption",
                    "label": "AssistantsApiToolChoiceOption"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                  "canonical": "objects/AssistantsApiToolChoiceOption",
                  "label": "AssistantsApiToolChoiceOption"
                }
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": true
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ParallelToolCalls",
                  "canonical": "objects/ParallelToolCalls",
                  "label": "ParallelToolCalls"
                }
              },
              {
                "name": "response_format",
                "type": "$$xor",
                "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                "properties": [
                  {
                    "name": "response_format",
                    "type": "$$enum",
                    "description": "`auto` is the default value\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "Text",
                    "type": "object",
                    "description": "Default response format. Used to generate text responses.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatText",
                      "canonical": "objects/ResponseFormatText",
                      "label": "ResponseFormatText"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `text`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON object",
                    "type": "object",
                    "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonObject",
                      "canonical": "objects/ResponseFormatJsonObject",
                      "label": "ResponseFormatJsonObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_object`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_object"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_object",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON schema",
                    "type": "object",
                    "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonSchema",
                      "canonical": "objects/ResponseFormatJsonSchema",
                      "label": "ResponseFormatJsonSchema"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_schema`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_schema"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_schema",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "json_schema",
                        "type": "object",
                        "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateRunRequest",
              "canonical": "objects/CreateRunRequest",
              "label": "CreateRunRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [run](/docs/api-reference/runs/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create thread and run",
    "canonical": "runs/createThreadAndRun",
    "description": "Create a thread and run it in one request.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/runs",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/runs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n      \"assistant_id\": \"asst_abc123\",\n      \"thread\": {\n        \"messages\": [\n          {\"role\": \"user\", \"content\": \"Explain deep learning to a 5 year old.\"}\n        ]\n      }\n    }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun = client.beta.threads.create_and_run(\n  assistant_id=\"asst_abc123\",\n  thread={\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"Explain deep learning to a 5 year old.\"}\n    ]\n  }\n)\n\nprint(run)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const run = await openai.beta.threads.createAndRun({\n    assistant_id: \"asst_abc123\",\n    thread: {\n      messages: [\n        { role: \"user\", content: \"Explain deep learning to a 5 year old.\" },\n      ],\n    },\n  });\n\n  console.log(run);\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"assistant_id\": \"asst_123\",\n    \"thread\": {\n      \"messages\": [\n        {\"role\": \"user\", \"content\": \"Hello\"}\n      ]\n    },\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nstream = client.beta.threads.create_and_run(\n  assistant_id=\"asst_123\",\n  thread={\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"Hello\"}\n    ]\n  },\n  stream=True\n)\n\nfor event in stream:\n  print(event)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const stream = await openai.beta.threads.createAndRun({\n      assistant_id: \"asst_123\",\n      thread: {\n        messages: [\n          { role: \"user\", content: \"Hello\" },\n        ],\n      },\n      stream: true\n  });\n\n  for await (const event of stream) {\n    console.log(event);\n  }\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming with Functions",
              "codeblock": {
                "title": "Streaming with Functions",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"assistant_id\": \"asst_abc123\",\n    \"thread\": {\n      \"messages\": [\n        {\"role\": \"user\", \"content\": \"What is the weather like in San Francisco?\"}\n      ]\n    },\n    \"tools\": [\n      {\n        \"type\": \"function\",\n        \"function\": {\n          \"name\": \"get_current_weather\",\n          \"description\": \"Get the current weather in a given location\",\n          \"parameters\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"location\": {\n                \"type\": \"string\",\n                \"description\": \"The city and state, e.g. San Francisco, CA\"\n              },\n              \"unit\": {\n                \"type\": \"string\",\n                \"enum\": [\"celsius\", \"fahrenheit\"]\n              }\n            },\n            \"required\": [\"location\"]\n          }\n        }\n      }\n    ],\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\ntools = [\n  {\n    \"type\": \"function\",\n    \"function\": {\n      \"name\": \"get_current_weather\",\n      \"description\": \"Get the current weather in a given location\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"location\": {\n            \"type\": \"string\",\n            \"description\": \"The city and state, e.g. San Francisco, CA\",\n          },\n          \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n        },\n        \"required\": [\"location\"],\n      },\n    }\n  }\n]\n\nstream = client.beta.threads.create_and_run(\n  thread={\n      \"messages\": [\n        {\"role\": \"user\", \"content\": \"What is the weather like in San Francisco?\"}\n      ]\n  },\n  assistant_id=\"asst_abc123\",\n  tools=tools,\n  stream=True\n)\n\nfor event in stream:\n  print(event)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nconst tools = [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather in a given location\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n              \"type\": \"string\",\n              \"description\": \"The city and state, e.g. San Francisco, CA\",\n            },\n            \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n          },\n          \"required\": [\"location\"],\n        },\n      }\n    }\n];\n\nasync function main() {\n  const stream = await openai.beta.threads.createAndRun({\n    assistant_id: \"asst_123\",\n    thread: {\n      messages: [\n        { role: \"user\", content: \"What is the weather like in San Francisco?\" },\n      ],\n    },\n    tools: tools,\n    stream: true\n  });\n\n  for await (const event of stream) {\n    console.log(event);\n  }\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_abc123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1699076792,\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"status\": \"queued\",\n  \"started_at\": null,\n  \"expires_at\": 1699077392,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": null,\n  \"required_action\": null,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You are a helpful assistant.\",\n  \"tools\": [],\n  \"tool_resources\": {},\n  \"metadata\": {},\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"max_completion_tokens\": null,\n  \"max_prompt_tokens\": null,\n  \"truncation_strategy\": {\n    \"type\": \"auto\",\n    \"last_messages\": null\n  },\n  \"incomplete_details\": null,\n  \"usage\": null,\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "event: thread.created\ndata: {\"id\":\"thread_123\",\"object\":\"thread\",\"created_at\":1710348075,\"metadata\":{}}\n\nevent: thread.run.created\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710348675,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"tool_resources\":{},\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}\n\nevent: thread.run.queued\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710348675,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"tool_resources\":{},\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}\n\nevent: thread.run.in_progress\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348075,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"in_progress\",\"started_at\":null,\"expires_at\":1710348675,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"tool_resources\":{},\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}\n\nevent: thread.run.step.created\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710348076,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710348675,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":null}\n\nevent: thread.run.step.in_progress\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710348076,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710348675,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":null}\n\nevent: thread.message.created\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[], \"metadata\":{}}\n\nevent: thread.message.in_progress\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[], \"metadata\":{}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"Hello\",\"annotations\":[]}}]}}\n\n...\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\" today\"}}]}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"?\"}}]}}\n\nevent: thread.message.completed\ndata: {\"id\":\"msg_001\",\"object\":\"thread.message\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"completed\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":1710348077,\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":{\"value\":\"Hello! How can I assist you today?\",\"annotations\":[]}}], \"metadata\":{}}\n\nevent: thread.run.step.completed\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710348076,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"completed\",\"cancelled_at\":null,\"completed_at\":1710348077,\"expires_at\":1710348675,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_001\"}},\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":11,\"total_tokens\":31}}\n\nevent: thread.run.completed\n{\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710348076,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"completed\",\"started_at\":1713226836,\"expires_at\":null,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":1713226837,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":{\"prompt_tokens\":345,\"completion_tokens\":11,\"total_tokens\":356},\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}\n\nevent: done\ndata: [DONE]\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming with Functions",
              "codeblock": {
                "title": "Streaming with Functions",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "event: thread.created\ndata: {\"id\":\"thread_123\",\"object\":\"thread\",\"created_at\":1710351818,\"metadata\":{}}\n\nevent: thread.run.created\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710351818,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710352418,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.queued\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710351818,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":null,\"expires_at\":1710352418,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.in_progress\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710351818,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"in_progress\",\"started_at\":1710351818,\"expires_at\":1710352418,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.step.created\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710351819,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"tool_calls\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710352418,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[]},\"usage\":null}\n\nevent: thread.run.step.in_progress\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710351819,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"tool_calls\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710352418,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[]},\"usage\":null}\n\nevent: thread.run.step.delta\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step.delta\",\"delta\":{\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[{\"index\":0,\"id\":\"call_XXNp8YGaFrjrSjgqxtC8JJ1B\",\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"arguments\":\"\",\"output\":null}}]}}}\n\nevent: thread.run.step.delta\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step.delta\",\"delta\":{\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"{\\\"\"}}]}}}\n\nevent: thread.run.step.delta\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step.delta\",\"delta\":{\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"location\"}}]}}}\n\n...\n\nevent: thread.run.step.delta\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step.delta\",\"delta\":{\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"ahrenheit\"}}]}}}\n\nevent: thread.run.step.delta\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step.delta\",\"delta\":{\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[{\"index\":0,\"type\":\"function\",\"function\":{\"arguments\":\"\\\"}\"}}]}}}\n\nevent: thread.run.requires_action\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710351818,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"requires_action\",\"started_at\":1710351818,\"expires_at\":1710352418,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":{\"type\":\"submit_tool_outputs\",\"submit_tool_outputs\":{\"tool_calls\":[{\"id\":\"call_XXNp8YGaFrjrSjgqxtC8JJ1B\",\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"arguments\":\"{\\\"location\\\":\\\"San Francisco, CA\\\",\\\"unit\\\":\\\"fahrenheit\\\"}\"}}]}},\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":{\"prompt_tokens\":345,\"completion_tokens\":11,\"total_tokens\":356},\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: done\ndata: [DONE]\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "assistant_id",
                "type": "string",
                "description": "The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "thread",
                "type": "object",
                "description": "Options to create a new thread. If no thread is provided when running a \nrequest, an empty thread will be created.\n",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/CreateThreadRequest",
                  "canonical": "objects/CreateThreadRequest",
                  "label": "CreateThreadRequest"
                },
                "properties": [
                  {
                    "name": "messages",
                    "type": "$$array",
                    "description": "A list of [messages](/docs/api-reference/messages) to start the thread with.",
                    "meta": [],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "role",
                          "type": "$$enum",
                          "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "user",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "assistant",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "content",
                          "type": "$$xor",
                          "description": "",
                          "properties": [
                            {
                              "name": "Text content",
                              "type": "string",
                              "description": "The text contents of the message.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "Array of content parts",
                              "type": "$$array",
                              "description": "An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](/docs/models).",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "Image file",
                                    "type": "object",
                                    "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/MessageContentImageFileObject",
                                      "canonical": "objects/MessageContentImageFileObject",
                                      "label": "MessageContentImageFileObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Always `image_file`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "image_file"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "image_file",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "image_file",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_id",
                                            "type": "string",
                                            "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "detail",
                                            "type": "$$enum",
                                            "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                            "meta": [
                                              {
                                                "name": "defaults",
                                                "value": "auto"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "auto",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "low",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "high",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Image URL",
                                    "type": "object",
                                    "description": "References an image URL in the content of a message.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/MessageContentImageUrlObject",
                                      "canonical": "objects/MessageContentImageUrlObject",
                                      "label": "MessageContentImageUrlObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "The type of the content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "image_url"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "image_url",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "image_url",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "url",
                                            "type": "string",
                                            "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          },
                                          {
                                            "name": "detail",
                                            "type": "$$enum",
                                            "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                            "meta": [
                                              {
                                                "name": "defaults",
                                                "value": "auto"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "auto",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "low",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              },
                                              {
                                                "name": "high",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Text",
                                    "type": "object",
                                    "description": "The text content that is part of a message.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "symbolDef": {
                                      "id": "#/components/schemas/MessageRequestContentTextObject",
                                      "canonical": "objects/MessageRequestContentTextObject",
                                      "label": "MessageRequestContentTextObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Always `text`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "text"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "text",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "Text content to be sent to the model",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            }
                          ],
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "attachments",
                          "type": "$$array",
                          "description": "A list of files attached to the message, and the tools they should be added to.",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "properties": [],
                          "ofProperty": {
                            "name": "",
                            "type": "object",
                            "properties": [
                              {
                                "name": "file_id",
                                "type": "string",
                                "description": "The ID of the file to attach to the message.",
                                "meta": []
                              },
                              {
                                "name": "tools",
                                "type": "$$array",
                                "description": "The tools to add this file to.",
                                "meta": [],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "$$xor",
                                  "properties": [
                                    {
                                      "name": "Code interpreter tool",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "symbolDef": {
                                        "id": "#/components/schemas/AssistantToolsCode",
                                        "canonical": "objects/AssistantToolsCode",
                                        "label": "AssistantToolsCode"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool being defined: `code_interpreter`",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "code_interpreter"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "code_interpreter",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "name": "FileSearch tool",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "symbolDef": {
                                        "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                        "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                        "label": "AssistantToolsFileSearchTypeOnly"
                                      },
                                      "properties": [
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool being defined: `file_search`",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "file_search"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "file_search",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ],
                                  "description": "",
                                  "meta": []
                                }
                              }
                            ],
                            "description": "",
                            "meta": []
                          }
                        },
                        {
                          "name": "metadata",
                          "type": "object",
                          "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                          "meta": [
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/Metadata",
                            "canonical": "objects/Metadata",
                            "label": "Metadata"
                          }
                        }
                      ],
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/CreateMessageRequest",
                        "canonical": "objects/CreateMessageRequest",
                        "label": "CreateMessageRequest"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/CreateMessageRequest",
                      "canonical": "objects/CreateMessageRequest",
                      "label": "CreateMessageRequest"
                    }
                  },
                  {
                    "name": "tool_resources",
                    "type": "object",
                    "description": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "code_interpreter",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "file_ids",
                            "type": "$$array",
                            "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "string",
                              "properties": [],
                              "description": "",
                              "meta": []
                            }
                          }
                        ]
                      },
                      {
                        "name": "file_search",
                        "type": "$$xor",
                        "description": "",
                        "properties": [
                          {
                            "name": "file_search",
                            "type": "object",
                            "description": "",
                            "meta": []
                          },
                          {
                            "name": "file_search",
                            "type": "object",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "meta": []
                      }
                    ]
                  },
                  {
                    "name": "metadata",
                    "type": "object",
                    "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/Metadata",
                      "canonical": "objects/Metadata",
                      "label": "Metadata"
                    }
                  }
                ]
              },
              {
                "name": "model",
                "type": "$$union",
                "description": "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-4.1",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-mini-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.1-nano-2025-04-14",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-11-20",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-08-06",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-2024-05-13",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4o-mini-2024-07-18",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4.5-preview-2025-02-27",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-2024-04-09",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0125-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-turbo-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-1106-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-vision-preview",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0314",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-4-32k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-1106",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-0125",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "gpt-3.5-turbo-16k-0613",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "instructions",
                "type": "string",
                "description": "Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "tools",
                "type": "$$array",
                "description": "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "Code interpreter tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsCode",
                        "canonical": "objects/AssistantToolsCode",
                        "label": "AssistantToolsCode"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `code_interpreter`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "code_interpreter"
                            }
                          ],
                          "properties": [
                            {
                              "name": "code_interpreter",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        }
                      ]
                    },
                    {
                      "name": "FileSearch tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFileSearch",
                        "canonical": "objects/AssistantToolsFileSearch",
                        "label": "AssistantToolsFileSearch"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `file_search`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "file_search"
                            }
                          ],
                          "properties": [
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "file_search",
                          "type": "object",
                          "description": "Overrides for the file search tool.",
                          "meta": [],
                          "properties": [
                            {
                              "name": "max_num_results",
                              "type": "integer",
                              "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [
                                {
                                  "name": "maximum",
                                  "value": 50
                                },
                                {
                                  "name": "minimum",
                                  "value": 1
                                }
                              ]
                            },
                            {
                              "name": "ranking_options",
                              "type": "object",
                              "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchRankingOptions",
                                "canonical": "objects/FileSearchRankingOptions",
                                "label": "FileSearchRankingOptions"
                              },
                              "properties": [
                                {
                                  "name": "ranker",
                                  "type": "$$enum",
                                  "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "default_2024_08_21",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/FileSearchRanker",
                                    "canonical": "objects/FileSearchRanker",
                                    "label": "FileSearchRanker"
                                  }
                                },
                                {
                                  "name": "score_threshold",
                                  "type": "number",
                                  "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "maximum",
                                      "value": 1
                                    },
                                    {
                                      "name": "minimum",
                                      "value": 0
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Function tool",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantToolsFunction",
                        "canonical": "objects/AssistantToolsFunction",
                        "label": "AssistantToolsFunction"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool being defined: `function`",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionObject",
                            "canonical": "objects/FunctionObject",
                            "label": "FunctionObject"
                          },
                          "properties": [
                            {
                              "name": "description",
                              "type": "string",
                              "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                              "meta": []
                            },
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "parameters",
                              "type": "object",
                              "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/FunctionParameters",
                                "canonical": "objects/FunctionParameters",
                                "label": "FunctionParameters"
                              }
                            },
                            {
                              "name": "strict",
                              "type": "boolean",
                              "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                              "meta": [
                                {
                                  "name": "defaults",
                                  "value": false
                                },
                                {
                                  "name": "nullable",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              },
              {
                "name": "tool_resources",
                "type": "object",
                "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "code_interpreter",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "file_ids",
                        "type": "$$array",
                        "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": []
                          }
                        ],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  },
                  {
                    "name": "file_search",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "vector_store_ids",
                        "type": "$$array",
                        "description": "The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n",
                        "meta": [],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "string",
                          "properties": [],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "max_prompt_tokens",
                "type": "integer",
                "description": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "minimum",
                    "value": 256
                  }
                ]
              },
              {
                "name": "max_completion_tokens",
                "type": "integer",
                "description": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "minimum",
                    "value": 256
                  }
                ]
              },
              {
                "name": "truncation_strategy",
                "type": "object",
                "description": "",
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "last_messages",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "last_messages",
                    "type": "integer",
                    "description": "The number of most recent messages from the thread when constructing the context for the run.",
                    "meta": [
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "minimum",
                        "value": 1
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/TruncationObject",
                  "canonical": "objects/TruncationObject",
                  "label": "TruncationObject"
                }
              },
              {
                "name": "tool_choice",
                "type": "",
                "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                "properties": [],
                "meta": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                  "properties": [
                    {
                      "name": "",
                      "type": "$$enum",
                      "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                      "meta": [
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "none",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "auto",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "required",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "",
                      "type": "object",
                      "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/AssistantsNamedToolChoice",
                        "canonical": "objects/AssistantsNamedToolChoice",
                        "label": "AssistantsNamedToolChoice"
                      },
                      "properties": [
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of the tool. If type is `function`, the function name must be set",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "code_interpreter",
                              "type": "string",
                              "description": "",
                              "meta": []
                            },
                            {
                              "name": "file_search",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "",
                          "meta": [],
                          "properties": [
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function to call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                    "canonical": "objects/AssistantsApiToolChoiceOption",
                    "label": "AssistantsApiToolChoiceOption"
                  }
                },
                "symbolDef": {
                  "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                  "canonical": "objects/AssistantsApiToolChoiceOption",
                  "label": "AssistantsApiToolChoiceOption"
                }
              },
              {
                "name": "parallel_tool_calls",
                "type": "boolean",
                "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                "meta": [
                  {
                    "name": "defaults",
                    "value": true
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ParallelToolCalls",
                  "canonical": "objects/ParallelToolCalls",
                  "label": "ParallelToolCalls"
                }
              },
              {
                "name": "response_format",
                "type": "$$xor",
                "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                "properties": [
                  {
                    "name": "response_format",
                    "type": "$$enum",
                    "description": "`auto` is the default value\n",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "auto"
                      }
                    ],
                    "properties": [
                      {
                        "name": "auto",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "Text",
                    "type": "object",
                    "description": "Default response format. Used to generate text responses.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatText",
                      "canonical": "objects/ResponseFormatText",
                      "label": "ResponseFormatText"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `text`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "text"
                          }
                        ],
                        "properties": [
                          {
                            "name": "text",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON object",
                    "type": "object",
                    "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonObject",
                      "canonical": "objects/ResponseFormatJsonObject",
                      "label": "ResponseFormatJsonObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_object`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_object"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_object",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      }
                    ]
                  },
                  {
                    "name": "JSON schema",
                    "type": "object",
                    "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/ResponseFormatJsonSchema",
                      "canonical": "objects/ResponseFormatJsonSchema",
                      "label": "ResponseFormatJsonSchema"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "The type of response format being defined. Always `json_schema`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "json_schema"
                          }
                        ],
                        "properties": [
                          {
                            "name": "json_schema",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "json_schema",
                        "type": "object",
                        "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "properties": [
                          {
                            "name": "description",
                            "type": "string",
                            "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                            "meta": []
                          },
                          {
                            "name": "name",
                            "type": "string",
                            "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "schema",
                            "type": "object",
                            "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                            "meta": [],
                            "symbolDef": {
                              "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                              "canonical": "objects/ResponseFormatJsonSchemaSchema",
                              "label": "ResponseFormatJsonSchemaSchema"
                            }
                          },
                          {
                            "name": "strict",
                            "type": "boolean",
                            "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                            "meta": [
                              {
                                "name": "defaults",
                                "value": false
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateThreadAndRunRequest",
              "canonical": "objects/CreateThreadAndRunRequest",
              "label": "CreateThreadAndRunRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A [run](/docs/api-reference/runs/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "List runs",
    "canonical": "runs/listRuns",
    "description": "Returns a list of runs belonging to a thread.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}/runs",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nruns = client.beta.threads.runs.list(\n  \"thread_abc123\"\n)\n\nprint(runs)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const runs = await openai.beta.threads.runs.list(\n    \"thread_abc123\"\n  );\n\n  console.log(runs);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"run_abc123\",\n      \"object\": \"thread.run\",\n      \"created_at\": 1699075072,\n      \"assistant_id\": \"asst_abc123\",\n      \"thread_id\": \"thread_abc123\",\n      \"status\": \"completed\",\n      \"started_at\": 1699075072,\n      \"expires_at\": null,\n      \"cancelled_at\": null,\n      \"failed_at\": null,\n      \"completed_at\": 1699075073,\n      \"last_error\": null,\n      \"model\": \"gpt-4o\",\n      \"instructions\": null,\n      \"incomplete_details\": null,\n      \"tools\": [\n        {\n          \"type\": \"code_interpreter\"\n        }\n      ],\n      \"tool_resources\": {\n        \"code_interpreter\": {\n          \"file_ids\": [\n            \"file-abc123\",\n            \"file-abc456\"\n          ]\n        }\n      },\n      \"metadata\": {},\n      \"usage\": {\n        \"prompt_tokens\": 123,\n        \"completion_tokens\": 456,\n        \"total_tokens\": 579\n      },\n      \"temperature\": 1.0,\n      \"top_p\": 1.0,\n      \"max_prompt_tokens\": 1000,\n      \"max_completion_tokens\": 1000,\n      \"truncation_strategy\": {\n        \"type\": \"auto\",\n        \"last_messages\": null\n      },\n      \"response_format\": \"auto\",\n      \"tool_choice\": \"auto\",\n      \"parallel_tool_calls\": true\n    },\n    {\n      \"id\": \"run_abc456\",\n      \"object\": \"thread.run\",\n      \"created_at\": 1699063290,\n      \"assistant_id\": \"asst_abc123\",\n      \"thread_id\": \"thread_abc123\",\n      \"status\": \"completed\",\n      \"started_at\": 1699063290,\n      \"expires_at\": null,\n      \"cancelled_at\": null,\n      \"failed_at\": null,\n      \"completed_at\": 1699063291,\n      \"last_error\": null,\n      \"model\": \"gpt-4o\",\n      \"instructions\": null,\n      \"incomplete_details\": null,\n      \"tools\": [\n        {\n          \"type\": \"code_interpreter\"\n        }\n      ],\n      \"tool_resources\": {\n        \"code_interpreter\": {\n          \"file_ids\": [\n            \"file-abc123\",\n            \"file-abc456\"\n          ]\n        }\n      },\n      \"metadata\": {},\n      \"usage\": {\n        \"prompt_tokens\": 123,\n        \"completion_tokens\": 456,\n        \"total_tokens\": 579\n      },\n      \"temperature\": 1.0,\n      \"top_p\": 1.0,\n      \"max_prompt_tokens\": 1000,\n      \"max_completion_tokens\": 1000,\n      \"truncation_strategy\": {\n        \"type\": \"auto\",\n        \"last_messages\": null\n      },\n      \"response_format\": \"auto\",\n      \"tool_choice\": \"auto\",\n      \"parallel_tool_calls\": true\n    }\n  ],\n  \"first_id\": \"run_abc123\",\n  \"last_id\": \"run_abc456\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread the run belongs to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [run](/docs/api-reference/runs/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve run",
    "canonical": "runs/getRun",
    "description": "Retrieves a run.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}/runs/{run_id}",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun = client.beta.threads.runs.retrieve(\n  thread_id=\"thread_abc123\",\n  run_id=\"run_abc123\"\n)\n\nprint(run)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const run = await openai.beta.threads.runs.retrieve(\n    \"thread_abc123\",\n    \"run_abc123\"\n  );\n\n  console.log(run);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_abc123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1699075072,\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"status\": \"completed\",\n  \"started_at\": 1699075072,\n  \"expires_at\": null,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": 1699075073,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": null,\n  \"incomplete_details\": null,\n  \"tools\": [\n    {\n      \"type\": \"code_interpreter\"\n    }\n  ],\n  \"metadata\": {},\n  \"usage\": {\n    \"prompt_tokens\": 123,\n    \"completion_tokens\": 456,\n    \"total_tokens\": 579\n  },\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"max_prompt_tokens\": 1000,\n  \"max_completion_tokens\": 1000,\n  \"truncation_strategy\": {\n    \"type\": \"auto\",\n    \"last_messages\": null\n  },\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [run](/docs/api-reference/runs/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify run",
    "canonical": "runs/modifyRun",
    "description": "Modifies a run.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}/runs/{run_id}",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"metadata\": {\n      \"user_id\": \"user_abc123\"\n    }\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun = client.beta.threads.runs.update(\n  thread_id=\"thread_abc123\",\n  run_id=\"run_abc123\",\n  metadata={\"user_id\": \"user_abc123\"},\n)\n\nprint(run)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const run = await openai.beta.threads.runs.update(\n    \"thread_abc123\",\n    \"run_abc123\",\n    {\n      metadata: {\n        user_id: \"user_abc123\",\n      },\n    }\n  );\n\n  console.log(run);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_abc123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1699075072,\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"status\": \"completed\",\n  \"started_at\": 1699075072,\n  \"expires_at\": null,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": 1699075073,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": null,\n  \"incomplete_details\": null,\n  \"tools\": [\n    {\n      \"type\": \"code_interpreter\"\n    }\n  ],\n  \"tool_resources\": {\n    \"code_interpreter\": {\n      \"file_ids\": [\n        \"file-abc123\",\n        \"file-abc456\"\n      ]\n    }\n  },\n  \"metadata\": {\n    \"user_id\": \"user_abc123\"\n  },\n  \"usage\": {\n    \"prompt_tokens\": 123,\n    \"completion_tokens\": 456,\n    \"total_tokens\": 579\n  },\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"max_prompt_tokens\": 1000,\n  \"max_completion_tokens\": 1000,\n  \"truncation_strategy\": {\n    \"type\": \"auto\",\n    \"last_messages\": null\n  },\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to modify.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "metadata",
                "type": "object",
                "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/Metadata",
                  "canonical": "objects/Metadata",
                  "label": "Metadata"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ModifyRunRequest",
              "canonical": "objects/ModifyRunRequest",
              "label": "ModifyRunRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The modified [run](/docs/api-reference/runs/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Submit tool outputs to run",
    "canonical": "runs/submitToolOutputs",
    "description": "When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}/runs/{run_id}/submit_tool_outputs",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/submit_tool_outputs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_123/runs/run_123/submit_tool_outputs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"tool_outputs\": [\n      {\n        \"tool_call_id\": \"call_001\",\n        \"output\": \"70 degrees and sunny.\"\n      }\n    ]\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun = client.beta.threads.runs.submit_tool_outputs(\n  thread_id=\"thread_123\",\n  run_id=\"run_123\",\n  tool_outputs=[\n    {\n      \"tool_call_id\": \"call_001\",\n      \"output\": \"70 degrees and sunny.\"\n    }\n  ]\n)\n\nprint(run)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const run = await openai.beta.threads.runs.submitToolOutputs(\n    \"thread_123\",\n    \"run_123\",\n    {\n      tool_outputs: [\n        {\n          tool_call_id: \"call_001\",\n          output: \"70 degrees and sunny.\",\n        },\n      ],\n    }\n  );\n\n  console.log(run);\n}\n\nmain();\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_123/runs/run_123/submit_tool_outputs \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -d '{\n    \"tool_outputs\": [\n      {\n        \"tool_call_id\": \"call_001\",\n        \"output\": \"70 degrees and sunny.\"\n      }\n    ],\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nstream = client.beta.threads.runs.submit_tool_outputs(\n  thread_id=\"thread_123\",\n  run_id=\"run_123\",\n  tool_outputs=[\n    {\n      \"tool_call_id\": \"call_001\",\n      \"output\": \"70 degrees and sunny.\"\n    }\n  ],\n  stream=True\n)\n\nfor event in stream:\n  print(event)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const stream = await openai.beta.threads.runs.submitToolOutputs(\n    \"thread_123\",\n    \"run_123\",\n    {\n      tool_outputs: [\n        {\n          tool_call_id: \"call_001\",\n          output: \"70 degrees and sunny.\",\n        },\n      ],\n    }\n  );\n\n  for await (const event of stream) {\n    console.log(event);\n  }\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "Default",
              "codeblock": {
                "title": "Default",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1699075592,\n  \"assistant_id\": \"asst_123\",\n  \"thread_id\": \"thread_123\",\n  \"status\": \"queued\",\n  \"started_at\": 1699075592,\n  \"expires_at\": 1699076192,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": null,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": null,\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"function\": {\n        \"name\": \"get_current_weather\",\n        \"description\": \"Get the current weather in a given location\",\n        \"parameters\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n              \"type\": \"string\",\n              \"description\": \"The city and state, e.g. San Francisco, CA\"\n            },\n            \"unit\": {\n              \"type\": \"string\",\n              \"enum\": [\"celsius\", \"fahrenheit\"]\n            }\n          },\n          \"required\": [\"location\"]\n        }\n      }\n    }\n  ],\n  \"metadata\": {},\n  \"usage\": null,\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"max_prompt_tokens\": 1000,\n  \"max_completion_tokens\": 1000,\n  \"truncation_strategy\": {\n    \"type\": \"auto\",\n    \"last_messages\": null\n  },\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "event: thread.run.step.completed\ndata: {\"id\":\"step_001\",\"object\":\"thread.run.step\",\"created_at\":1710352449,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"tool_calls\",\"status\":\"completed\",\"cancelled_at\":null,\"completed_at\":1710352475,\"expires_at\":1710353047,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"tool_calls\",\"tool_calls\":[{\"id\":\"call_iWr0kQ2EaYMaxNdl0v3KYkx7\",\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"arguments\":\"{\\\"location\\\":\\\"San Francisco, CA\\\",\\\"unit\\\":\\\"fahrenheit\\\"}\",\"output\":\"70 degrees and sunny.\"}}]},\"usage\":{\"prompt_tokens\":291,\"completion_tokens\":24,\"total_tokens\":315}}\n\nevent: thread.run.queued\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710352447,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"queued\",\"started_at\":1710352448,\"expires_at\":1710353047,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.in_progress\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710352447,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"in_progress\",\"started_at\":1710352475,\"expires_at\":1710353047,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":null,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":null,\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: thread.run.step.created\ndata: {\"id\":\"step_002\",\"object\":\"thread.run.step\",\"created_at\":1710352476,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710353047,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_002\"}},\"usage\":null}\n\nevent: thread.run.step.in_progress\ndata: {\"id\":\"step_002\",\"object\":\"thread.run.step\",\"created_at\":1710352476,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"in_progress\",\"cancelled_at\":null,\"completed_at\":null,\"expires_at\":1710353047,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_002\"}},\"usage\":null}\n\nevent: thread.message.created\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message\",\"created_at\":1710352476,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[],\"metadata\":{}}\n\nevent: thread.message.in_progress\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message\",\"created_at\":1710352476,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"in_progress\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":null,\"role\":\"assistant\",\"content\":[],\"metadata\":{}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\"The\",\"annotations\":[]}}]}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\" current\"}}]}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\" weather\"}}]}}\n\n...\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\" sunny\"}}]}}\n\nevent: thread.message.delta\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message.delta\",\"delta\":{\"content\":[{\"index\":0,\"type\":\"text\",\"text\":{\"value\":\".\"}}]}}\n\nevent: thread.message.completed\ndata: {\"id\":\"msg_002\",\"object\":\"thread.message\",\"created_at\":1710352476,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"run_id\":\"run_123\",\"status\":\"completed\",\"incomplete_details\":null,\"incomplete_at\":null,\"completed_at\":1710352477,\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":{\"value\":\"The current weather in San Francisco, CA is 70 degrees Fahrenheit and sunny.\",\"annotations\":[]}}],\"metadata\":{}}\n\nevent: thread.run.step.completed\ndata: {\"id\":\"step_002\",\"object\":\"thread.run.step\",\"created_at\":1710352476,\"run_id\":\"run_123\",\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"type\":\"message_creation\",\"status\":\"completed\",\"cancelled_at\":null,\"completed_at\":1710352477,\"expires_at\":1710353047,\"failed_at\":null,\"last_error\":null,\"step_details\":{\"type\":\"message_creation\",\"message_creation\":{\"message_id\":\"msg_002\"}},\"usage\":{\"prompt_tokens\":329,\"completion_tokens\":18,\"total_tokens\":347}}\n\nevent: thread.run.completed\ndata: {\"id\":\"run_123\",\"object\":\"thread.run\",\"created_at\":1710352447,\"assistant_id\":\"asst_123\",\"thread_id\":\"thread_123\",\"status\":\"completed\",\"started_at\":1710352475,\"expires_at\":null,\"cancelled_at\":null,\"failed_at\":null,\"completed_at\":1710352477,\"required_action\":null,\"last_error\":null,\"model\":\"gpt-4o\",\"instructions\":null,\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"get_current_weather\",\"description\":\"Get the current weather in a given location\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"},\"unit\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"]}},\"required\":[\"location\"]}}}],\"metadata\":{},\"temperature\":1.0,\"top_p\":1.0,\"max_completion_tokens\":null,\"max_prompt_tokens\":null,\"truncation_strategy\":{\"type\":\"auto\",\"last_messages\":null},\"incomplete_details\":null,\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":11,\"total_tokens\":31},\"response_format\":\"auto\",\"tool_choice\":\"auto\",\"parallel_tool_calls\":true}}\n\nevent: done\ndata: [DONE]\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) to which this run belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run that requires the tool output submission.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "tool_outputs",
                "type": "$$array",
                "description": "A list of tools for which the outputs are being submitted.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "tool_call_id",
                      "type": "string",
                      "description": "The ID of the tool call in the `required_action` object within the run object the output is being submitted for.",
                      "meta": []
                    },
                    {
                      "name": "output",
                      "type": "string",
                      "description": "The output of the tool call to be submitted to continue the run.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/SubmitToolOutputsRunRequest",
              "canonical": "objects/SubmitToolOutputsRunRequest",
              "label": "SubmitToolOutputsRunRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The modified [run](/docs/api-reference/runs/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Cancel a run",
    "canonical": "runs/cancelRun",
    "description": "Cancels a run that is `in_progress`.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/threads/{thread_id}/runs/{run_id}/cancel",
      "group": [
        "Assistants",
        "Runs"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/cancel",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/cancel \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"OpenAI-Beta: assistants=v2\" \\\n  -X POST\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun = client.beta.threads.runs.cancel(\n  thread_id=\"thread_abc123\",\n  run_id=\"run_abc123\"\n)\n\nprint(run)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const run = await openai.beta.threads.runs.cancel(\n    \"thread_abc123\",\n    \"run_abc123\"\n  );\n\n  console.log(run);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_abc123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1699076126,\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"status\": \"cancelling\",\n  \"started_at\": 1699076126,\n  \"expires_at\": 1699076726,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": null,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": \"You summarize books.\",\n  \"tools\": [\n    {\n      \"type\": \"file_search\"\n    }\n  ],\n  \"tool_resources\": {\n    \"file_search\": {\n      \"vector_store_ids\": [\"vs_123\"]\n    }\n  },\n  \"metadata\": {},\n  \"usage\": null,\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to which this run belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to cancel.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The modified [run](/docs/api-reference/runs/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "The run object",
    "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
    "canonical": "runs/object",
    "definitions": [
      {
        "title": "RunObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `thread.run`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "thread.run"
              }
            ],
            "properties": [
              {
                "name": "thread.run",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "assistant_id",
            "type": "string",
            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "queued",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "requires_action",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelling",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "incomplete",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "expired",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "required_action",
            "type": "object",
            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "For now, this is always `submit_tool_outputs`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "submit_tool_outputs"
                  }
                ],
                "properties": [
                  {
                    "name": "submit_tool_outputs",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "submit_tool_outputs",
                "type": "object",
                "description": "Details on the tool outputs needed for this run to continue.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [
                  {
                    "name": "tool_calls",
                    "type": "$$array",
                    "description": "A list of the relevant tool calls.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "object",
                      "properties": [
                        {
                          "name": "id",
                          "type": "string",
                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "function"
                            }
                          ],
                          "properties": [
                            {
                              "name": "function",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "function",
                          "type": "object",
                          "description": "The function definition.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "properties": [
                            {
                              "name": "name",
                              "type": "string",
                              "description": "The name of the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "arguments",
                              "type": "string",
                              "description": "The arguments that the model expects you to pass to the function.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "Tool call objects",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/RunToolCallObject",
                        "canonical": "objects/RunToolCallObject",
                        "label": "RunToolCallObject"
                      }
                    },
                    "symbolDef": {
                      "id": "#/components/schemas/RunToolCallObject",
                      "canonical": "objects/RunToolCallObject",
                      "label": "RunToolCallObject"
                    }
                  }
                ]
              }
            ]
          },
          {
            "name": "last_error",
            "type": "object",
            "description": "The last error associated with this run. Will be `null` if there are no errors.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code",
                "type": "$$enum",
                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "server_error",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "rate_limit_exceeded",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "invalid_prompt",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable description of the error.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "expires_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run will expire.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "started_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run was started.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "cancelled_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "failed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run failed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "completed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run was completed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "incomplete_details",
            "type": "object",
            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "reason",
                "type": "$$enum",
                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "max_completion_tokens",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "max_prompt_tokens",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "instructions",
            "type": "string",
            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "tools",
            "type": "$$array",
            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": []
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "properties": [
                {
                  "name": "Code interpreter tool",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantToolsCode",
                    "canonical": "objects/AssistantToolsCode",
                    "label": "AssistantToolsCode"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of tool being defined: `code_interpreter`",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "code_interpreter"
                        }
                      ],
                      "properties": [
                        {
                          "name": "code_interpreter",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ]
                },
                {
                  "name": "FileSearch tool",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantToolsFileSearch",
                    "canonical": "objects/AssistantToolsFileSearch",
                    "label": "AssistantToolsFileSearch"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of tool being defined: `file_search`",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "file_search"
                        }
                      ],
                      "properties": [
                        {
                          "name": "file_search",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "file_search",
                      "type": "object",
                      "description": "Overrides for the file search tool.",
                      "meta": [],
                      "properties": [
                        {
                          "name": "max_num_results",
                          "type": "integer",
                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                          "meta": [
                            {
                              "name": "maximum",
                              "value": 50
                            },
                            {
                              "name": "minimum",
                              "value": 1
                            }
                          ]
                        },
                        {
                          "name": "ranking_options",
                          "type": "object",
                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/FileSearchRankingOptions",
                            "canonical": "objects/FileSearchRankingOptions",
                            "label": "FileSearchRankingOptions"
                          },
                          "properties": [
                            {
                              "name": "ranker",
                              "type": "$$enum",
                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                              "meta": [
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "default_2024_08_21",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              },
                              "symbolDef": {
                                "id": "#/components/schemas/FileSearchRanker",
                                "canonical": "objects/FileSearchRanker",
                                "label": "FileSearchRanker"
                              }
                            },
                            {
                              "name": "score_threshold",
                              "type": "number",
                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "maximum",
                                  "value": 1
                                },
                                {
                                  "name": "minimum",
                                  "value": 0
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Function tool",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantToolsFunction",
                    "canonical": "objects/AssistantToolsFunction",
                    "label": "AssistantToolsFunction"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of tool being defined: `function`",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        },
                        {
                          "name": "const",
                          "value": "function"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "function",
                      "type": "object",
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "symbolDef": {
                        "id": "#/components/schemas/FunctionObject",
                        "canonical": "objects/FunctionObject",
                        "label": "FunctionObject"
                      },
                      "properties": [
                        {
                          "name": "description",
                          "type": "string",
                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                          "meta": []
                        },
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "parameters",
                          "type": "object",
                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                          "meta": [],
                          "symbolDef": {
                            "id": "#/components/schemas/FunctionParameters",
                            "canonical": "objects/FunctionParameters",
                            "label": "FunctionParameters"
                          }
                        },
                        {
                          "name": "strict",
                          "type": "boolean",
                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                          "meta": [
                            {
                              "name": "defaults",
                              "value": false
                            },
                            {
                              "name": "nullable",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          },
          {
            "name": "usage",
            "type": "object",
            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RunCompletionUsage",
              "canonical": "objects/RunCompletionUsage",
              "label": "RunCompletionUsage"
            },
            "properties": [
              {
                "name": "completion_tokens",
                "type": "integer",
                "description": "Number of completion tokens used over the course of the run.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "prompt_tokens",
                "type": "integer",
                "description": "Number of prompt tokens used over the course of the run.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "Total number of tokens used (prompt + completion).",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "temperature",
            "type": "number",
            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "top_p",
            "type": "number",
            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "max_prompt_tokens",
            "type": "integer",
            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "minimum",
                "value": 256
              }
            ]
          },
          {
            "name": "max_completion_tokens",
            "type": "integer",
            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "minimum",
                "value": 256
              }
            ]
          },
          {
            "name": "truncation_strategy",
            "type": "object",
            "description": "",
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "last_messages",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "last_messages",
                "type": "integer",
                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/TruncationObject",
              "canonical": "objects/TruncationObject",
              "label": "TruncationObject"
            }
          },
          {
            "name": "tool_choice",
            "type": "",
            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
            "properties": [],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "ofProperty": {
              "name": "",
              "type": "$$xor",
              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
              "properties": [
                {
                  "name": "",
                  "type": "$$enum",
                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "none",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "auto",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "required",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "",
                  "type": "object",
                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                  "meta": [],
                  "symbolDef": {
                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                    "canonical": "objects/AssistantsNamedToolChoice",
                    "label": "AssistantsNamedToolChoice"
                  },
                  "properties": [
                    {
                      "name": "type",
                      "type": "$$enum",
                      "description": "The type of the tool. If type is `function`, the function name must be set",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "function",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "code_interpreter",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "file_search",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    },
                    {
                      "name": "function",
                      "type": "object",
                      "description": "",
                      "meta": [],
                      "properties": [
                        {
                          "name": "name",
                          "type": "string",
                          "description": "The name of the function to call.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ],
              "meta": [],
              "symbolDef": {
                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                "canonical": "objects/AssistantsApiToolChoiceOption",
                "label": "AssistantsApiToolChoiceOption"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
              "canonical": "objects/AssistantsApiToolChoiceOption",
              "label": "AssistantsApiToolChoiceOption"
            }
          },
          {
            "name": "parallel_tool_calls",
            "type": "boolean",
            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "defaults",
                "value": true
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ParallelToolCalls",
              "canonical": "objects/ParallelToolCalls",
              "label": "ParallelToolCalls"
            }
          },
          {
            "name": "response_format",
            "type": "$$xor",
            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
            "properties": [
              {
                "name": "response_format",
                "type": "$$enum",
                "description": "`auto` is the default value\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  },
                  {
                    "name": "const",
                    "value": "auto"
                  }
                ],
                "properties": [
                  {
                    "name": "auto",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "Text",
                "type": "object",
                "description": "Default response format. Used to generate text responses.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseFormatText",
                  "canonical": "objects/ResponseFormatText",
                  "label": "ResponseFormatText"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of response format being defined. Always `text`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "text"
                      }
                    ],
                    "properties": [
                      {
                        "name": "text",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "JSON object",
                "type": "object",
                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseFormatJsonObject",
                  "canonical": "objects/ResponseFormatJsonObject",
                  "label": "ResponseFormatJsonObject"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of response format being defined. Always `json_object`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "json_object"
                      }
                    ],
                    "properties": [
                      {
                        "name": "json_object",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "JSON schema",
                "type": "object",
                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                  "canonical": "objects/ResponseFormatJsonSchema",
                  "label": "ResponseFormatJsonSchema"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of response format being defined. Always `json_schema`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "json_schema"
                      }
                    ],
                    "properties": [
                      {
                        "name": "json_schema",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "json_schema",
                    "type": "object",
                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "description",
                        "type": "string",
                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                        "meta": []
                      },
                      {
                        "name": "name",
                        "type": "string",
                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "schema",
                        "type": "object",
                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                        "meta": [],
                        "symbolDef": {
                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                          "label": "ResponseFormatJsonSchemaSchema"
                        }
                      },
                      {
                        "name": "strict",
                        "type": "boolean",
                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                        "meta": [
                          {
                            "name": "defaults",
                            "value": false
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RunObject",
          "canonical": "objects/RunObject",
          "label": "thread.run"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"run_abc123\",\n  \"object\": \"thread.run\",\n  \"created_at\": 1698107661,\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"status\": \"completed\",\n  \"started_at\": 1699073476,\n  \"expires_at\": null,\n  \"cancelled_at\": null,\n  \"failed_at\": null,\n  \"completed_at\": 1699073498,\n  \"last_error\": null,\n  \"model\": \"gpt-4o\",\n  \"instructions\": null,\n  \"tools\": [{\"type\": \"file_search\"}, {\"type\": \"code_interpreter\"}],\n  \"metadata\": {},\n  \"incomplete_details\": null,\n  \"usage\": {\n    \"prompt_tokens\": 123,\n    \"completion_tokens\": 456,\n    \"total_tokens\": 579\n  },\n  \"temperature\": 1.0,\n  \"top_p\": 1.0,\n  \"max_prompt_tokens\": 1000,\n  \"max_completion_tokens\": 1000,\n  \"truncation_strategy\": {\n    \"type\": \"auto\",\n    \"last_messages\": null\n  },\n  \"response_format\": \"auto\",\n  \"tool_choice\": \"auto\",\n  \"parallel_tool_calls\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RunObject",
      "group": [
        "Assistants",
        "Runs"
      ]
    }
  },
  {
    "title": "List run steps",
    "canonical": "run-steps/listRunSteps",
    "description": "Returns a list of run steps belonging to a run.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}/runs/{run_id}/steps",
      "group": [
        "Assistants",
        "Run steps"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun_steps = client.beta.threads.runs.steps.list(\n    thread_id=\"thread_abc123\",\n    run_id=\"run_abc123\"\n)\n\nprint(run_steps)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const runStep = await openai.beta.threads.runs.steps.list(\n    \"thread_abc123\",\n    \"run_abc123\"\n  );\n  console.log(runStep);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"step_abc123\",\n      \"object\": \"thread.run.step\",\n      \"created_at\": 1699063291,\n      \"run_id\": \"run_abc123\",\n      \"assistant_id\": \"asst_abc123\",\n      \"thread_id\": \"thread_abc123\",\n      \"type\": \"message_creation\",\n      \"status\": \"completed\",\n      \"cancelled_at\": null,\n      \"completed_at\": 1699063291,\n      \"expired_at\": null,\n      \"failed_at\": null,\n      \"last_error\": null,\n      \"step_details\": {\n        \"type\": \"message_creation\",\n        \"message_creation\": {\n          \"message_id\": \"msg_abc123\"\n        }\n      },\n      \"usage\": {\n        \"prompt_tokens\": 123,\n        \"completion_tokens\": 456,\n        \"total_tokens\": 579\n      }\n    }\n  ],\n  \"first_id\": \"step_abc123\",\n  \"last_id\": \"step_abc456\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread the run and run steps belong to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run the run steps belong to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          },
          {
            "name": "include[]",
            "type": "$$array",
            "description": "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "step_details.tool_calls[*].file_search.results[*].content",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                },
                {
                  "name": "const",
                  "value": "step_details.tool_calls[*].file_search.results[*].content"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [run step](/docs/api-reference/run-steps/step-object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve run step",
    "canonical": "run-steps/getRunStep",
    "description": "Retrieves a run step.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/threads/{thread_id}/runs/{run_id}/steps/{step_id}",
      "group": [
        "Assistants",
        "Run steps"
      ],
      "fullPath": "https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps/{step_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps/step_abc123 \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"OpenAI-Beta: assistants=v2\"\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nrun_step = client.beta.threads.runs.steps.retrieve(\n    thread_id=\"thread_abc123\",\n    run_id=\"run_abc123\",\n    step_id=\"step_abc123\"\n)\n\nprint(run_step)\n"
                  },
                  {
                    "title": "js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\nconst openai = new OpenAI();\n\nasync function main() {\n  const runStep = await openai.beta.threads.runs.steps.retrieve(\n    \"thread_abc123\",\n    \"run_abc123\",\n    \"step_abc123\"\n  );\n  console.log(runStep);\n}\n\nmain();\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"step_abc123\",\n  \"object\": \"thread.run.step\",\n  \"created_at\": 1699063291,\n  \"run_id\": \"run_abc123\",\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"type\": \"message_creation\",\n  \"status\": \"completed\",\n  \"cancelled_at\": null,\n  \"completed_at\": 1699063291,\n  \"expired_at\": null,\n  \"failed_at\": null,\n  \"last_error\": null,\n  \"step_details\": {\n    \"type\": \"message_creation\",\n    \"message_creation\": {\n      \"message_id\": \"msg_abc123\"\n    }\n  },\n  \"usage\": {\n    \"prompt_tokens\": 123,\n    \"completion_tokens\": 456,\n    \"total_tokens\": 579\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the thread to which the run and run step belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the run to which the run step belongs.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "step_id",
            "type": "string",
            "description": "The ID of the run step to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "include[]",
            "type": "$$array",
            "description": "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "step_details.tool_calls[*].file_search.results[*].content",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                },
                {
                  "name": "const",
                  "value": "step_details.tool_calls[*].file_search.results[*].content"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "The [run step](/docs/api-reference/run-steps/step-object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "The run step object",
    "description": "Represents a step in execution of a run.\n",
    "canonical": "run-steps/step-object",
    "definitions": [
      {
        "title": "RunStepObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier of the run step, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `thread.run.step`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "thread.run.step"
              }
            ],
            "properties": [
              {
                "name": "thread.run.step",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run step was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "assistant_id",
            "type": "string",
            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "thread_id",
            "type": "string",
            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "run_id",
            "type": "string",
            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "message_creation",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "tool_calls",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "in_progress",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "cancelled",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "completed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "expired",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "step_details",
            "type": "$$xor",
            "description": "The details of the run step.",
            "properties": [
              {
                "name": "Message creation",
                "type": "object",
                "description": "Details of the message creation by the run step.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                  "label": "RunStepDetailsMessageCreationObject"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Always `message_creation`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "message_creation"
                      }
                    ],
                    "properties": [
                      {
                        "name": "message_creation",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "message_creation",
                    "type": "object",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "message_id",
                        "type": "string",
                        "description": "The ID of the message that was created by this run step.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "Tool calls",
                "type": "object",
                "description": "Details of the tool call.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                  "canonical": "objects/RunStepDetailsToolCallsObject",
                  "label": "RunStepDetailsToolCallsObject"
                },
                "properties": [
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "Always `tool_calls`.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "tool_calls"
                      }
                    ],
                    "properties": [
                      {
                        "name": "tool_calls",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "tool_calls",
                    "type": "$$array",
                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$xor",
                      "properties": [
                        {
                          "name": "Code Interpreter tool call",
                          "type": "object",
                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                            "label": "RunStepDetailsToolCallsCodeObject"
                          },
                          "properties": [
                            {
                              "name": "id",
                              "type": "string",
                              "description": "The ID of the tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "code_interpreter"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "code_interpreter",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "code_interpreter",
                              "type": "object",
                              "description": "The Code Interpreter tool call definition.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "input",
                                  "type": "string",
                                  "description": "The input to the Code Interpreter tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "outputs",
                                  "type": "$$array",
                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Code Interpreter log output",
                                        "type": "object",
                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Always `logs`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "logs"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "logs",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "logs",
                                            "type": "string",
                                            "description": "The text output from the Code Interpreter tool call.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "name": "Code Interpreter image output",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "Always `image`.",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "image"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "image",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          },
                                          {
                                            "name": "image",
                                            "type": "object",
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "file_id",
                                                "type": "string",
                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "File search tool call",
                          "type": "object",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                            "label": "RunStepDetailsToolCallsFileSearchObject"
                          },
                          "properties": [
                            {
                              "name": "id",
                              "type": "string",
                              "description": "The ID of the tool call object.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "file_search"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "file_search",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "file_search",
                              "type": "object",
                              "description": "For now, this is always going to be an empty object.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "ranking_options",
                                  "type": "object",
                                  "description": "The ranking options for the file search.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "ranker",
                                      "type": "$$enum",
                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "auto",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "default_2024_08_21",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      },
                                      "symbolDef": {
                                        "id": "#/components/schemas/FileSearchRanker",
                                        "canonical": "objects/FileSearchRanker",
                                        "label": "FileSearchRanker"
                                      }
                                    },
                                    {
                                      "name": "score_threshold",
                                      "type": "number",
                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "maximum",
                                          "value": 1
                                        },
                                        {
                                          "name": "minimum",
                                          "value": 0
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "results",
                                  "type": "$$array",
                                  "description": "The results of the file search.",
                                  "meta": [],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "object",
                                    "properties": [
                                      {
                                        "name": "file_id",
                                        "type": "string",
                                        "description": "The ID of the file that result was found in.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "file_name",
                                        "type": "string",
                                        "description": "The name of the file that result was found in.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "score",
                                        "type": "number",
                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "maximum",
                                            "value": 1
                                          },
                                          {
                                            "name": "minimum",
                                            "value": 0
                                          }
                                        ]
                                      },
                                      {
                                        "name": "content",
                                        "type": "$$array",
                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                        "meta": [],
                                        "properties": [],
                                        "ofProperty": {
                                          "name": "",
                                          "type": "object",
                                          "properties": [
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of the content.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "text"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "text",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "text",
                                              "type": "string",
                                              "description": "The text content of the file.",
                                              "meta": []
                                            }
                                          ],
                                          "description": "",
                                          "meta": []
                                        }
                                      }
                                    ],
                                    "description": "A result instance of the file search.",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                    }
                                  },
                                  "symbolDef": {
                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Function tool call",
                          "type": "object",
                          "description": "",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ],
                          "symbolDef": {
                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                            "label": "RunStepDetailsToolCallsFunctionObject"
                          },
                          "properties": [
                            {
                              "name": "id",
                              "type": "string",
                              "description": "The ID of the tool call object.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            },
                            {
                              "name": "type",
                              "type": "$$enum",
                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                },
                                {
                                  "name": "const",
                                  "value": "function"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "function",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            },
                            {
                              "name": "function",
                              "type": "object",
                              "description": "The definition of the function that was called.",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "name",
                                  "type": "string",
                                  "description": "The name of the function.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "arguments",
                                  "type": "string",
                                  "description": "The arguments passed to the function.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "output",
                                  "type": "string",
                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "nullable",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    }
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "last_error",
            "type": "object",
            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "code",
                "type": "$$enum",
                "description": "One of `server_error` or `rate_limit_exceeded`.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "server_error",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "rate_limit_exceeded",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "message",
                "type": "string",
                "description": "A human-readable description of the error.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          },
          {
            "name": "expired_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "cancelled_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "failed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run step failed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "completed_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) for when the run step completed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "metadata",
            "type": "object",
            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/Metadata",
              "canonical": "objects/Metadata",
              "label": "Metadata"
            }
          },
          {
            "name": "usage",
            "type": "object",
            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/RunStepCompletionUsage",
              "canonical": "objects/RunStepCompletionUsage",
              "label": "RunStepCompletionUsage"
            },
            "properties": [
              {
                "name": "completion_tokens",
                "type": "integer",
                "description": "Number of completion tokens used over the course of the run step.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "prompt_tokens",
                "type": "integer",
                "description": "Number of prompt tokens used over the course of the run step.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "Total number of tokens used (prompt + completion).",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RunStepObject",
          "canonical": "objects/RunStepObject",
          "label": "thread.run.step"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"step_abc123\",\n  \"object\": \"thread.run.step\",\n  \"created_at\": 1699063291,\n  \"run_id\": \"run_abc123\",\n  \"assistant_id\": \"asst_abc123\",\n  \"thread_id\": \"thread_abc123\",\n  \"type\": \"message_creation\",\n  \"status\": \"completed\",\n  \"cancelled_at\": null,\n  \"completed_at\": 1699063291,\n  \"expired_at\": null,\n  \"failed_at\": null,\n  \"last_error\": null,\n  \"step_details\": {\n    \"type\": \"message_creation\",\n    \"message_creation\": {\n      \"message_id\": \"msg_abc123\"\n    }\n  },\n  \"usage\": {\n    \"prompt_tokens\": 123,\n    \"completion_tokens\": 456,\n    \"total_tokens\": 579\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RunStepObject",
      "group": [
        "Assistants",
        "Run steps"
      ]
    }
  },
  {
    "title": "The message delta object",
    "description": "Represents a message delta i.e. any changed fields on a message during streaming.\n",
    "canonical": "assistants-streaming/message-delta-object",
    "definitions": [
      {
        "title": "MessageDeltaObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier of the message, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `thread.message.delta`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "thread.message.delta"
              }
            ],
            "properties": [
              {
                "name": "thread.message.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "delta",
            "type": "object",
            "description": "The delta containing the fields that have changed on the Message.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "role",
                "type": "$$enum",
                "description": "The entity that produced the message. One of `user` or `assistant`.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "assistant",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "content",
                "type": "$$array",
                "description": "The content of the message in array of text and/or images.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "$$xor",
                  "properties": [
                    {
                      "name": "Image file",
                      "type": "object",
                      "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/MessageDeltaContentImageFileObject",
                        "canonical": "objects/MessageDeltaContentImageFileObject",
                        "label": "MessageDeltaContentImageFileObject"
                      },
                      "properties": [
                        {
                          "name": "index",
                          "type": "integer",
                          "description": "The index of the content part in the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "Always `image_file`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "image_file"
                            }
                          ],
                          "properties": [
                            {
                              "name": "image_file",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "image_file",
                          "type": "object",
                          "description": "",
                          "meta": [],
                          "properties": [
                            {
                              "name": "file_id",
                              "type": "string",
                              "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                              "meta": []
                            },
                            {
                              "name": "detail",
                              "type": "$$enum",
                              "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                              "meta": [
                                {
                                  "name": "defaults",
                                  "value": "auto"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "low",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "high",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Text",
                      "type": "object",
                      "description": "The text content that is part of a message.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/MessageDeltaContentTextObject",
                        "canonical": "objects/MessageDeltaContentTextObject",
                        "label": "MessageDeltaContentTextObject"
                      },
                      "properties": [
                        {
                          "name": "index",
                          "type": "integer",
                          "description": "The index of the content part in the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "Always `text`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "text"
                            }
                          ],
                          "properties": [
                            {
                              "name": "text",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "text",
                          "type": "object",
                          "description": "",
                          "meta": [],
                          "properties": [
                            {
                              "name": "value",
                              "type": "string",
                              "description": "The data that makes up the text.",
                              "meta": []
                            },
                            {
                              "name": "annotations",
                              "type": "$$array",
                              "description": "",
                              "meta": [],
                              "properties": [],
                              "ofProperty": {
                                "name": "",
                                "type": "$$xor",
                                "properties": [
                                  {
                                    "name": "File citation",
                                    "type": "object",
                                    "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/MessageDeltaContentTextAnnotationsFileCitationObject",
                                      "canonical": "objects/MessageDeltaContentTextAnnotationsFileCitationObject",
                                      "label": "MessageDeltaContentTextAnnotationsFileCitationObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "index",
                                        "type": "integer",
                                        "description": "The index of the annotation in the text content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Always `file_citation`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file_citation"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_citation",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text in the message content that needs to be replaced.",
                                        "meta": []
                                      },
                                      {
                                        "name": "file_citation",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "properties": [
                                          {
                                            "name": "file_id",
                                            "type": "string",
                                            "description": "The ID of the specific File the citation is from.",
                                            "meta": []
                                          },
                                          {
                                            "name": "quote",
                                            "type": "string",
                                            "description": "The specific quote in the file.",
                                            "meta": []
                                          }
                                        ]
                                      },
                                      {
                                        "name": "start_index",
                                        "type": "integer",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "minimum",
                                            "value": 0
                                          }
                                        ]
                                      },
                                      {
                                        "name": "end_index",
                                        "type": "integer",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "minimum",
                                            "value": 0
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "File path",
                                    "type": "object",
                                    "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/MessageDeltaContentTextAnnotationsFilePathObject",
                                      "canonical": "objects/MessageDeltaContentTextAnnotationsFilePathObject",
                                      "label": "MessageDeltaContentTextAnnotationsFilePathObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "index",
                                        "type": "integer",
                                        "description": "The index of the annotation in the text content part.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Always `file_path`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "file_path"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "file_path",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "The text in the message content that needs to be replaced.",
                                        "meta": []
                                      },
                                      {
                                        "name": "file_path",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "properties": [
                                          {
                                            "name": "file_id",
                                            "type": "string",
                                            "description": "The ID of the file that was generated.",
                                            "meta": []
                                          }
                                        ]
                                      },
                                      {
                                        "name": "start_index",
                                        "type": "integer",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "minimum",
                                            "value": 0
                                          }
                                        ]
                                      },
                                      {
                                        "name": "end_index",
                                        "type": "integer",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "minimum",
                                            "value": 0
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "description": "",
                                "meta": []
                              }
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Refusal",
                      "type": "object",
                      "description": "The refusal content that is part of a message.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/MessageDeltaContentRefusalObject",
                        "canonical": "objects/MessageDeltaContentRefusalObject",
                        "label": "MessageDeltaContentRefusalObject"
                      },
                      "properties": [
                        {
                          "name": "index",
                          "type": "integer",
                          "description": "The index of the refusal part in the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "Always `refusal`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "refusal"
                            }
                          ],
                          "properties": [
                            {
                              "name": "refusal",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "refusal",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ]
                    },
                    {
                      "name": "Image URL",
                      "type": "object",
                      "description": "References an image URL in the content of a message.",
                      "meta": [],
                      "symbolDef": {
                        "id": "#/components/schemas/MessageDeltaContentImageUrlObject",
                        "canonical": "objects/MessageDeltaContentImageUrlObject",
                        "label": "MessageDeltaContentImageUrlObject"
                      },
                      "properties": [
                        {
                          "name": "index",
                          "type": "integer",
                          "description": "The index of the content part in the message.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            }
                          ]
                        },
                        {
                          "name": "type",
                          "type": "$$enum",
                          "description": "Always `image_url`.",
                          "meta": [
                            {
                              "name": "required",
                              "value": "true"
                            },
                            {
                              "name": "enum-type",
                              "value": "string"
                            },
                            {
                              "name": "const",
                              "value": "image_url"
                            }
                          ],
                          "properties": [
                            {
                              "name": "image_url",
                              "type": "string",
                              "description": "",
                              "meta": []
                            }
                          ],
                          "ofProperty": {
                            "name": "",
                            "description": "",
                            "type": "string"
                          }
                        },
                        {
                          "name": "image_url",
                          "type": "object",
                          "description": "",
                          "meta": [],
                          "properties": [
                            {
                              "name": "url",
                              "type": "string",
                              "description": "The URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                              "meta": []
                            },
                            {
                              "name": "detail",
                              "type": "$$enum",
                              "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                              "meta": [
                                {
                                  "name": "defaults",
                                  "value": "auto"
                                },
                                {
                                  "name": "enum-type",
                                  "value": "string"
                                }
                              ],
                              "properties": [
                                {
                                  "name": "auto",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "low",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                },
                                {
                                  "name": "high",
                                  "type": "string",
                                  "description": "",
                                  "meta": []
                                }
                              ],
                              "ofProperty": {
                                "name": "",
                                "description": "",
                                "type": "string"
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/MessageDeltaObject",
          "canonical": "objects/MessageDeltaObject",
          "label": "thread.message.delta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"msg_123\",\n  \"object\": \"thread.message.delta\",\n  \"delta\": {\n    \"content\": [\n      {\n        \"index\": 0,\n        \"type\": \"text\",\n        \"text\": { \"value\": \"Hello\", \"annotations\": [] }\n      }\n    ]\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "MessageDeltaObject",
      "group": [
        "Assistants",
        "Streaming"
      ]
    }
  },
  {
    "title": "The run step delta object",
    "description": "Represents a run step delta i.e. any changed fields on a run step during streaming.\n",
    "canonical": "assistants-streaming/run-step-delta-object",
    "definitions": [
      {
        "title": "RunStepDeltaObject",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier of the run step, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `thread.run.step.delta`.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "thread.run.step.delta"
              }
            ],
            "properties": [
              {
                "name": "thread.run.step.delta",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "delta",
            "type": "object",
            "description": "The delta containing the fields that have changed on the run step.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "step_details",
                "type": "$$xor",
                "description": "The details of the run step.",
                "properties": [
                  {
                    "name": "Message creation",
                    "type": "object",
                    "description": "Details of the message creation by the run step.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/RunStepDeltaStepDetailsMessageCreationObject",
                      "canonical": "objects/RunStepDeltaStepDetailsMessageCreationObject",
                      "label": "RunStepDeltaStepDetailsMessageCreationObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `message_creation`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "message_creation"
                          }
                        ],
                        "properties": [
                          {
                            "name": "message_creation",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "message_creation",
                        "type": "object",
                        "description": "",
                        "meta": [],
                        "properties": [
                          {
                            "name": "message_id",
                            "type": "string",
                            "description": "The ID of the message that was created by this run step.",
                            "meta": []
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "Tool calls",
                    "type": "object",
                    "description": "Details of the tool call.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsObject",
                      "canonical": "objects/RunStepDeltaStepDetailsToolCallsObject",
                      "label": "RunStepDeltaStepDetailsToolCallsObject"
                    },
                    "properties": [
                      {
                        "name": "type",
                        "type": "$$enum",
                        "description": "Always `tool_calls`.",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "tool_calls"
                          }
                        ],
                        "properties": [
                          {
                            "name": "tool_calls",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "tool_calls",
                        "type": "$$array",
                        "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                        "meta": [],
                        "properties": [],
                        "ofProperty": {
                          "name": "",
                          "type": "$$xor",
                          "properties": [
                            {
                              "name": "Code interpreter tool call",
                              "type": "object",
                              "description": "Details of the Code Interpreter tool call the run step was involved in.",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeObject",
                                "canonical": "objects/RunStepDeltaStepDetailsToolCallsCodeObject",
                                "label": "RunStepDeltaStepDetailsToolCallsCodeObject"
                              },
                              "properties": [
                                {
                                  "name": "index",
                                  "type": "integer",
                                  "description": "The index of the tool call in the tool calls array.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The ID of the tool call.",
                                  "meta": []
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "code_interpreter"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "code_interpreter",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "code_interpreter",
                                  "type": "object",
                                  "description": "The Code Interpreter tool call definition.",
                                  "meta": [],
                                  "properties": [
                                    {
                                      "name": "input",
                                      "type": "string",
                                      "description": "The input to the Code Interpreter tool call.",
                                      "meta": []
                                    },
                                    {
                                      "name": "outputs",
                                      "type": "$$array",
                                      "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                      "meta": [],
                                      "properties": [],
                                      "ofProperty": {
                                        "name": "",
                                        "type": "$$xor",
                                        "properties": [
                                          {
                                            "name": "Code interpreter log output",
                                            "type": "object",
                                            "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                            "meta": [],
                                            "symbolDef": {
                                              "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject",
                                              "canonical": "objects/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject",
                                              "label": "RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject"
                                            },
                                            "properties": [
                                              {
                                                "name": "index",
                                                "type": "integer",
                                                "description": "The index of the output in the outputs array.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "type",
                                                "type": "$$enum",
                                                "description": "Always `logs`.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  },
                                                  {
                                                    "name": "enum-type",
                                                    "value": "string"
                                                  },
                                                  {
                                                    "name": "const",
                                                    "value": "logs"
                                                  }
                                                ],
                                                "properties": [
                                                  {
                                                    "name": "logs",
                                                    "type": "string",
                                                    "description": "",
                                                    "meta": []
                                                  }
                                                ],
                                                "ofProperty": {
                                                  "name": "",
                                                  "description": "",
                                                  "type": "string"
                                                }
                                              },
                                              {
                                                "name": "logs",
                                                "type": "string",
                                                "description": "The text output from the Code Interpreter tool call.",
                                                "meta": []
                                              }
                                            ]
                                          },
                                          {
                                            "name": "Code interpreter image output",
                                            "type": "object",
                                            "description": "",
                                            "meta": [],
                                            "symbolDef": {
                                              "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject",
                                              "canonical": "objects/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject",
                                              "label": "RunStepDeltaStepDetailsToolCallsCodeOutputImageObject"
                                            },
                                            "properties": [
                                              {
                                                "name": "index",
                                                "type": "integer",
                                                "description": "The index of the output in the outputs array.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "type",
                                                "type": "$$enum",
                                                "description": "Always `image`.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  },
                                                  {
                                                    "name": "enum-type",
                                                    "value": "string"
                                                  },
                                                  {
                                                    "name": "const",
                                                    "value": "image"
                                                  }
                                                ],
                                                "properties": [
                                                  {
                                                    "name": "image",
                                                    "type": "string",
                                                    "description": "",
                                                    "meta": []
                                                  }
                                                ],
                                                "ofProperty": {
                                                  "name": "",
                                                  "description": "",
                                                  "type": "string"
                                                }
                                              },
                                              {
                                                "name": "image",
                                                "type": "object",
                                                "description": "",
                                                "meta": [],
                                                "properties": [
                                                  {
                                                    "name": "file_id",
                                                    "type": "string",
                                                    "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                    "meta": []
                                                  }
                                                ]
                                              }
                                            ]
                                          }
                                        ],
                                        "description": "",
                                        "meta": []
                                      }
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "File search tool call",
                              "type": "object",
                              "description": "",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsFileSearchObject",
                                "canonical": "objects/RunStepDeltaStepDetailsToolCallsFileSearchObject",
                                "label": "RunStepDeltaStepDetailsToolCallsFileSearchObject"
                              },
                              "properties": [
                                {
                                  "name": "index",
                                  "type": "integer",
                                  "description": "The index of the tool call in the tool calls array.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The ID of the tool call object.",
                                  "meta": []
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "file_search"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "file_search",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "file_search",
                                  "type": "object",
                                  "description": "For now, this is always going to be an empty object.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "name": "Function tool call",
                              "type": "object",
                              "description": "",
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsFunctionObject",
                                "canonical": "objects/RunStepDeltaStepDetailsToolCallsFunctionObject",
                                "label": "RunStepDeltaStepDetailsToolCallsFunctionObject"
                              },
                              "properties": [
                                {
                                  "name": "index",
                                  "type": "integer",
                                  "description": "The index of the tool call in the tool calls array.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ]
                                },
                                {
                                  "name": "id",
                                  "type": "string",
                                  "description": "The ID of the tool call object.",
                                  "meta": []
                                },
                                {
                                  "name": "type",
                                  "type": "$$enum",
                                  "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    },
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    },
                                    {
                                      "name": "const",
                                      "value": "function"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "function",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "function",
                                  "type": "object",
                                  "description": "The definition of the function that was called.",
                                  "meta": [],
                                  "properties": [
                                    {
                                      "name": "name",
                                      "type": "string",
                                      "description": "The name of the function.",
                                      "meta": []
                                    },
                                    {
                                      "name": "arguments",
                                      "type": "string",
                                      "description": "The arguments passed to the function.",
                                      "meta": []
                                    },
                                    {
                                      "name": "output",
                                      "type": "string",
                                      "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                      "meta": [
                                        {
                                          "name": "nullable",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ],
                          "description": "",
                          "meta": []
                        }
                      }
                    ]
                  }
                ],
                "meta": []
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/RunStepDeltaObject",
          "canonical": "objects/RunStepDeltaObject",
          "label": "thread.run.step.delta"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"step_123\",\n  \"object\": \"thread.run.step.delta\",\n  \"delta\": {\n    \"step_details\": {\n      \"type\": \"tool_calls\",\n      \"tool_calls\": [\n        {\n          \"index\": 0,\n          \"id\": \"call_123\",\n          \"type\": \"code_interpreter\",\n          \"code_interpreter\": { \"input\": \"\", \"outputs\": [] }\n        }\n      ]\n    }\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "RunStepDeltaObject",
      "group": [
        "Assistants",
        "Streaming"
      ]
    }
  },
  {
    "title": "Assistant stream events",
    "description": "Represents an event emitted when streaming a Run.\n\nEach event in a server-sent events stream has an `event` and `data` property:\n\n```\nevent: thread.created\ndata: {\"id\": \"thread_123\", \"object\": \"thread\", ...}\n```\n\nWe emit events whenever a new object is created, transitions to a new state, or is being\nstreamed in parts (deltas). For example, we emit `thread.run.created` when a new run\nis created, `thread.run.completed` when a run completes, and so on. When an Assistant chooses\nto create a message during a run, we emit a `thread.message.created event`, a\n`thread.message.in_progress` event, many `thread.message.delta` events, and finally a\n`thread.message.completed` event.\n\nWe may add additional events over time, so we recommend handling unknown events gracefully\nin your code. See the [Assistants API quickstart](/docs/assistants/overview) to learn how to\nintegrate the Assistants API with streaming.\n",
    "canonical": "assistants-streaming/events",
    "definitions": [
      {
        "title": "AssistantStreamEvent",
        "properties": [
          {
            "name": "",
            "type": "$$xor",
            "description": "Represents an event emitted when streaming a Run.\n\nEach event in a server-sent events stream has an `event` and `data` property:\n\n```\nevent: thread.created\ndata: {\"id\": \"thread_123\", \"object\": \"thread\", ...}\n```\n\nWe emit events whenever a new object is created, transitions to a new state, or is being\nstreamed in parts (deltas). For example, we emit `thread.run.created` when a new run\nis created, `thread.run.completed` when a run completes, and so on. When an Assistant chooses\nto create a message during a run, we emit a `thread.message.created event`, a\n`thread.message.in_progress` event, many `thread.message.delta` events, and finally a\n`thread.message.completed` event.\n\nWe may add additional events over time, so we recommend handling unknown events gracefully\nin your code. See the [Assistants API quickstart](/docs/assistants/overview) to learn how to\nintegrate the Assistants API with streaming.\n",
            "properties": [
              {
                "name": "",
                "type": "$$xor",
                "description": "",
                "properties": [
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a new [thread](/docs/api-reference/threads/object) is created.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "enabled",
                        "type": "boolean",
                        "description": "Whether to enable input audio transcription.",
                        "meta": []
                      },
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.created"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.created",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a thread that contains [messages](/docs/api-reference/messages).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/ThreadObject",
                          "canonical": "objects/ThreadObject",
                          "label": "thread"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the thread was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tool_resources",
                            "type": "object",
                            "description": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code_interpreter",
                                "type": "object",
                                "description": "",
                                "meta": [],
                                "properties": [
                                  {
                                    "name": "file_ids",
                                    "type": "$$array",
                                    "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n",
                                    "meta": [
                                      {
                                        "name": "defaults",
                                        "value": []
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "string",
                                      "properties": [],
                                      "description": "",
                                      "meta": []
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "file_search",
                                "type": "object",
                                "description": "",
                                "meta": [],
                                "properties": [
                                  {
                                    "name": "vector_store_ids",
                                    "type": "$$array",
                                    "description": "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.\n",
                                    "meta": [],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "string",
                                      "properties": [],
                                      "description": "",
                                      "meta": []
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ThreadStreamEvent",
                  "canonical": "objects/ThreadStreamEvent",
                  "label": "ThreadStreamEvent"
                }
              },
              {
                "name": "",
                "type": "$$xor",
                "description": "",
                "properties": [
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a new [run](/docs/api-reference/runs/object) is created.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.created"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.created",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) moves to a `queued` status.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.queued"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.queued",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) moves to an `in_progress` status.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.in_progress"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.in_progress",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) moves to a `requires_action` status.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.requires_action"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.requires_action",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) is completed.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.completed"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.completed",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) ends with status `incomplete`.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.incomplete"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.incomplete",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) fails.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.failed"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.failed",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) moves to a `cancelling` status.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.cancelling"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.cancelling",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) is cancelled.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.cancelled"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.cancelled",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run](/docs/api-reference/runs/object) expires.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.expired"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.expired",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents an execution run on a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunObject",
                          "canonical": "objects/RunObject",
                          "label": "thread.run"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "queued",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "requires_action",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelling",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "required_action",
                            "type": "object",
                            "description": "Details on the action required to continue the run. Will be `null` if no action is required.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "For now, this is always `submit_tool_outputs`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "submit_tool_outputs"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "submit_tool_outputs",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "submit_tool_outputs",
                                "type": "object",
                                "description": "Details on the tool outputs needed for this run to continue.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "A list of the relevant tool calls.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "object",
                                      "properties": [
                                        {
                                          "name": "id",
                                          "type": "string",
                                          "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "The type of tool call the output is required for. For now, this is always `function`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "function"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "function",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "function",
                                          "type": "object",
                                          "description": "The function definition.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "name",
                                              "type": "string",
                                              "description": "The name of the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "arguments",
                                              "type": "string",
                                              "description": "The arguments that the model expects you to pass to the function.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "Tool call objects",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/RunToolCallObject",
                                        "canonical": "objects/RunToolCallObject",
                                        "label": "RunToolCallObject"
                                      }
                                    },
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunToolCallObject",
                                      "canonical": "objects/RunToolCallObject",
                                      "label": "RunToolCallObject"
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "invalid_prompt",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expires_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run will expire.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "started_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was started.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "max_completion_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_prompt_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "model",
                            "type": "string",
                            "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "instructions",
                            "type": "string",
                            "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "tools",
                            "type": "$$array",
                            "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": []
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Code interpreter tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsCode",
                                    "canonical": "objects/AssistantToolsCode",
                                    "label": "AssistantToolsCode"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `code_interpreter`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "code_interpreter"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    }
                                  ]
                                },
                                {
                                  "name": "FileSearch tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFileSearch",
                                    "canonical": "objects/AssistantToolsFileSearch",
                                    "label": "AssistantToolsFileSearch"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `file_search`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "file_search"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "file_search",
                                      "type": "object",
                                      "description": "Overrides for the file search tool.",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "max_num_results",
                                          "type": "integer",
                                          "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [
                                            {
                                              "name": "maximum",
                                              "value": 50
                                            },
                                            {
                                              "name": "minimum",
                                              "value": 1
                                            }
                                          ]
                                        },
                                        {
                                          "name": "ranking_options",
                                          "type": "object",
                                          "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FileSearchRankingOptions",
                                            "canonical": "objects/FileSearchRankingOptions",
                                            "label": "FileSearchRankingOptions"
                                          },
                                          "properties": [
                                            {
                                              "name": "ranker",
                                              "type": "$$enum",
                                              "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                              "meta": [
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "default_2024_08_21",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              },
                                              "symbolDef": {
                                                "id": "#/components/schemas/FileSearchRanker",
                                                "canonical": "objects/FileSearchRanker",
                                                "label": "FileSearchRanker"
                                              }
                                            },
                                            {
                                              "name": "score_threshold",
                                              "type": "number",
                                              "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "maximum",
                                                  "value": 1
                                                },
                                                {
                                                  "name": "minimum",
                                                  "value": 0
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Function tool",
                                  "type": "object",
                                  "description": "",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantToolsFunction",
                                    "canonical": "objects/AssistantToolsFunction",
                                    "label": "AssistantToolsFunction"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of tool being defined: `function`",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "function"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "symbolDef": {
                                        "id": "#/components/schemas/FunctionObject",
                                        "canonical": "objects/FunctionObject",
                                        "label": "FunctionObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "description",
                                          "type": "string",
                                          "description": "A description of what the function does, used by the model to choose when and how to call the function.",
                                          "meta": []
                                        },
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "parameters",
                                          "type": "object",
                                          "description": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list.",
                                          "meta": [],
                                          "symbolDef": {
                                            "id": "#/components/schemas/FunctionParameters",
                                            "canonical": "objects/FunctionParameters",
                                            "label": "FunctionParameters"
                                          }
                                        },
                                        {
                                          "name": "strict",
                                          "type": "boolean",
                                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": false
                                            },
                                            {
                                              "name": "nullable",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunCompletionUsage",
                              "canonical": "objects/RunCompletionUsage",
                              "label": "RunCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "temperature",
                            "type": "number",
                            "description": "The sampling temperature used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "top_p",
                            "type": "number",
                            "description": "The nucleus sampling value used for this run. If not set, defaults to 1.",
                            "meta": [
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "max_prompt_tokens",
                            "type": "integer",
                            "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "max_completion_tokens",
                            "type": "integer",
                            "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              },
                              {
                                "name": "minimum",
                                "value": 256
                              }
                            ]
                          },
                          {
                            "name": "truncation_strategy",
                            "type": "object",
                            "description": "",
                            "properties": [
                              {
                                "name": "type",
                                "type": "$$enum",
                                "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "last_messages",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "last_messages",
                                "type": "integer",
                                "description": "The number of most recent messages from the thread when constructing the context for the run.",
                                "meta": [
                                  {
                                    "name": "nullable",
                                    "value": "true"
                                  },
                                  {
                                    "name": "minimum",
                                    "value": 1
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/TruncationObject",
                              "canonical": "objects/TruncationObject",
                              "label": "TruncationObject"
                            }
                          },
                          {
                            "name": "tool_choice",
                            "type": "",
                            "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                            "properties": [],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n",
                              "properties": [
                                {
                                  "name": "",
                                  "type": "$$enum",
                                  "description": "`none` means the model will not call any tools 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 before responding to the user.\n",
                                  "meta": [
                                    {
                                      "name": "enum-type",
                                      "value": "string"
                                    }
                                  ],
                                  "properties": [
                                    {
                                      "name": "none",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "auto",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    },
                                    {
                                      "name": "required",
                                      "type": "string",
                                      "description": "",
                                      "meta": []
                                    }
                                  ],
                                  "ofProperty": {
                                    "name": "",
                                    "description": "",
                                    "type": "string"
                                  }
                                },
                                {
                                  "name": "",
                                  "type": "object",
                                  "description": "Specifies a tool the model should use. Use to force the model to call a specific tool.",
                                  "meta": [],
                                  "symbolDef": {
                                    "id": "#/components/schemas/AssistantsNamedToolChoice",
                                    "canonical": "objects/AssistantsNamedToolChoice",
                                    "label": "AssistantsNamedToolChoice"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the tool. If type is `function`, the function name must be set",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "function",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "code_interpreter",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        },
                                        {
                                          "name": "file_search",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "function",
                                      "type": "object",
                                      "description": "",
                                      "meta": [],
                                      "properties": [
                                        {
                                          "name": "name",
                                          "type": "string",
                                          "description": "The name of the function to call.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "meta": [],
                              "symbolDef": {
                                "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                                "canonical": "objects/AssistantsApiToolChoiceOption",
                                "label": "AssistantsApiToolChoiceOption"
                              }
                            },
                            "symbolDef": {
                              "id": "#/components/schemas/AssistantsApiToolChoiceOption",
                              "canonical": "objects/AssistantsApiToolChoiceOption",
                              "label": "AssistantsApiToolChoiceOption"
                            }
                          },
                          {
                            "name": "parallel_tool_calls",
                            "type": "boolean",
                            "description": "Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "defaults",
                                "value": true
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/ParallelToolCalls",
                              "canonical": "objects/ParallelToolCalls",
                              "label": "ParallelToolCalls"
                            }
                          },
                          {
                            "name": "response_format",
                            "type": "$$xor",
                            "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n",
                            "properties": [
                              {
                                "name": "response_format",
                                "type": "$$enum",
                                "description": "`auto` is the default value\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  },
                                  {
                                    "name": "const",
                                    "value": "auto"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "auto",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "Text",
                                "type": "object",
                                "description": "Default response format. Used to generate text responses.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatText",
                                  "canonical": "objects/ResponseFormatText",
                                  "label": "ResponseFormatText"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `text`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "text"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "text",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON object",
                                "type": "object",
                                "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonObject",
                                  "canonical": "objects/ResponseFormatJsonObject",
                                  "label": "ResponseFormatJsonObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_object`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_object"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_object",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  }
                                ]
                              },
                              {
                                "name": "JSON schema",
                                "type": "object",
                                "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/ResponseFormatJsonSchema",
                                  "canonical": "objects/ResponseFormatJsonSchema",
                                  "label": "ResponseFormatJsonSchema"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "The type of response format being defined. Always `json_schema`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "json_schema"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "json_schema",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "json_schema",
                                    "type": "object",
                                    "description": "Structured Outputs configuration options, including a JSON Schema.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "description",
                                        "type": "string",
                                        "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n",
                                        "meta": []
                                      },
                                      {
                                        "name": "name",
                                        "type": "string",
                                        "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      },
                                      {
                                        "name": "schema",
                                        "type": "object",
                                        "description": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/ResponseFormatJsonSchemaSchema",
                                          "canonical": "objects/ResponseFormatJsonSchemaSchema",
                                          "label": "ResponseFormatJsonSchemaSchema"
                                        }
                                      },
                                      {
                                        "name": "strict",
                                        "type": "boolean",
                                        "description": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n",
                                        "meta": [
                                          {
                                            "name": "defaults",
                                            "value": false
                                          },
                                          {
                                            "name": "nullable",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/RunStreamEvent",
                  "canonical": "objects/RunStreamEvent",
                  "label": "RunStreamEvent"
                }
              },
              {
                "name": "",
                "type": "$$xor",
                "description": "",
                "properties": [
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run step](/docs/api-reference/run-steps/step-object) is created.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.created"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.created",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a step in execution of a run.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepObject",
                          "canonical": "objects/RunStepObject",
                          "label": "thread.run.step"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message_creation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "tool_calls",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "step_details",
                            "type": "$$xor",
                            "description": "The details of the run step.",
                            "properties": [
                              {
                                "name": "Message creation",
                                "type": "object",
                                "description": "Details of the message creation by the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                                  "label": "RunStepDetailsMessageCreationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `message_creation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message_creation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_creation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "message_creation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_id",
                                        "type": "string",
                                        "description": "The ID of the message that was created by this run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Tool calls",
                                "type": "object",
                                "description": "Details of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                                  "canonical": "objects/RunStepDetailsToolCallsObject",
                                  "label": "RunStepDetailsToolCallsObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `tool_calls`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "tool_calls"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "tool_calls",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "Code Interpreter tool call",
                                          "type": "object",
                                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                                            "label": "RunStepDetailsToolCallsCodeObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "code_interpreter"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "code_interpreter",
                                              "type": "object",
                                              "description": "The Code Interpreter tool call definition.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input",
                                                  "type": "string",
                                                  "description": "The input to the Code Interpreter tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "outputs",
                                                  "type": "$$array",
                                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "$$xor",
                                                    "properties": [
                                                      {
                                                        "name": "Code Interpreter log output",
                                                        "type": "object",
                                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `logs`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "logs"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "logs",
                                                            "type": "string",
                                                            "description": "The text output from the Code Interpreter tool call.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "Code Interpreter image output",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `image`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "image"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "image",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "image",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "file_id",
                                                                "type": "string",
                                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File search tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                                            "label": "RunStepDetailsToolCallsFileSearchObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_search"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_search",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_search",
                                              "type": "object",
                                              "description": "For now, this is always going to be an empty object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "ranking_options",
                                                  "type": "object",
                                                  "description": "The ranking options for the file search.",
                                                  "meta": [],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "ranker",
                                                      "type": "$$enum",
                                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                                      "meta": [
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "auto",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        },
                                                        {
                                                          "name": "default_2024_08_21",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      },
                                                      "symbolDef": {
                                                        "id": "#/components/schemas/FileSearchRanker",
                                                        "canonical": "objects/FileSearchRanker",
                                                        "label": "FileSearchRanker"
                                                      }
                                                    },
                                                    {
                                                      "name": "score_threshold",
                                                      "type": "number",
                                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "maximum",
                                                          "value": 1
                                                        },
                                                        {
                                                          "name": "minimum",
                                                          "value": 0
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "results",
                                                  "type": "$$array",
                                                  "description": "The results of the file search.",
                                                  "meta": [],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "object",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_name",
                                                        "type": "string",
                                                        "description": "The name of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "score",
                                                        "type": "number",
                                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "maximum",
                                                            "value": 1
                                                          },
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "content",
                                                        "type": "$$array",
                                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                                        "meta": [],
                                                        "properties": [],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "type": "object",
                                                          "properties": [
                                                            {
                                                              "name": "type",
                                                              "type": "$$enum",
                                                              "description": "The type of the content.",
                                                              "meta": [
                                                                {
                                                                  "name": "enum-type",
                                                                  "value": "string"
                                                                },
                                                                {
                                                                  "name": "const",
                                                                  "value": "text"
                                                                }
                                                              ],
                                                              "properties": [
                                                                {
                                                                  "name": "text",
                                                                  "type": "string",
                                                                  "description": "",
                                                                  "meta": []
                                                                }
                                                              ],
                                                              "ofProperty": {
                                                                "name": "",
                                                                "description": "",
                                                                "type": "string"
                                                              }
                                                            },
                                                            {
                                                              "name": "text",
                                                              "type": "string",
                                                              "description": "The text content of the file.",
                                                              "meta": []
                                                            }
                                                          ],
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      }
                                                    ],
                                                    "description": "A result instance of the file search.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                    }
                                                  },
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Function tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                                            "label": "RunStepDetailsToolCallsFunctionObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "function"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "function",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "function",
                                              "type": "object",
                                              "description": "The definition of the function that was called.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "name",
                                                  "type": "string",
                                                  "description": "The name of the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "arguments",
                                                  "type": "string",
                                                  "description": "The arguments passed to the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "output",
                                                  "type": "string",
                                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "nullable",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error` or `rate_limit_exceeded`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expired_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunStepCompletionUsage",
                              "canonical": "objects/RunStepCompletionUsage",
                              "label": "RunStepCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run step](/docs/api-reference/run-steps/step-object) moves to an `in_progress` state.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.in_progress"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.in_progress",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a step in execution of a run.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepObject",
                          "canonical": "objects/RunStepObject",
                          "label": "thread.run.step"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message_creation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "tool_calls",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "step_details",
                            "type": "$$xor",
                            "description": "The details of the run step.",
                            "properties": [
                              {
                                "name": "Message creation",
                                "type": "object",
                                "description": "Details of the message creation by the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                                  "label": "RunStepDetailsMessageCreationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `message_creation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message_creation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_creation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "message_creation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_id",
                                        "type": "string",
                                        "description": "The ID of the message that was created by this run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Tool calls",
                                "type": "object",
                                "description": "Details of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                                  "canonical": "objects/RunStepDetailsToolCallsObject",
                                  "label": "RunStepDetailsToolCallsObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `tool_calls`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "tool_calls"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "tool_calls",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "Code Interpreter tool call",
                                          "type": "object",
                                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                                            "label": "RunStepDetailsToolCallsCodeObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "code_interpreter"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "code_interpreter",
                                              "type": "object",
                                              "description": "The Code Interpreter tool call definition.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input",
                                                  "type": "string",
                                                  "description": "The input to the Code Interpreter tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "outputs",
                                                  "type": "$$array",
                                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "$$xor",
                                                    "properties": [
                                                      {
                                                        "name": "Code Interpreter log output",
                                                        "type": "object",
                                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `logs`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "logs"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "logs",
                                                            "type": "string",
                                                            "description": "The text output from the Code Interpreter tool call.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "Code Interpreter image output",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `image`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "image"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "image",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "image",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "file_id",
                                                                "type": "string",
                                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File search tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                                            "label": "RunStepDetailsToolCallsFileSearchObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_search"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_search",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_search",
                                              "type": "object",
                                              "description": "For now, this is always going to be an empty object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "ranking_options",
                                                  "type": "object",
                                                  "description": "The ranking options for the file search.",
                                                  "meta": [],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "ranker",
                                                      "type": "$$enum",
                                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                                      "meta": [
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "auto",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        },
                                                        {
                                                          "name": "default_2024_08_21",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      },
                                                      "symbolDef": {
                                                        "id": "#/components/schemas/FileSearchRanker",
                                                        "canonical": "objects/FileSearchRanker",
                                                        "label": "FileSearchRanker"
                                                      }
                                                    },
                                                    {
                                                      "name": "score_threshold",
                                                      "type": "number",
                                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "maximum",
                                                          "value": 1
                                                        },
                                                        {
                                                          "name": "minimum",
                                                          "value": 0
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "results",
                                                  "type": "$$array",
                                                  "description": "The results of the file search.",
                                                  "meta": [],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "object",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_name",
                                                        "type": "string",
                                                        "description": "The name of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "score",
                                                        "type": "number",
                                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "maximum",
                                                            "value": 1
                                                          },
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "content",
                                                        "type": "$$array",
                                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                                        "meta": [],
                                                        "properties": [],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "type": "object",
                                                          "properties": [
                                                            {
                                                              "name": "type",
                                                              "type": "$$enum",
                                                              "description": "The type of the content.",
                                                              "meta": [
                                                                {
                                                                  "name": "enum-type",
                                                                  "value": "string"
                                                                },
                                                                {
                                                                  "name": "const",
                                                                  "value": "text"
                                                                }
                                                              ],
                                                              "properties": [
                                                                {
                                                                  "name": "text",
                                                                  "type": "string",
                                                                  "description": "",
                                                                  "meta": []
                                                                }
                                                              ],
                                                              "ofProperty": {
                                                                "name": "",
                                                                "description": "",
                                                                "type": "string"
                                                              }
                                                            },
                                                            {
                                                              "name": "text",
                                                              "type": "string",
                                                              "description": "The text content of the file.",
                                                              "meta": []
                                                            }
                                                          ],
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      }
                                                    ],
                                                    "description": "A result instance of the file search.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                    }
                                                  },
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Function tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                                            "label": "RunStepDetailsToolCallsFunctionObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "function"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "function",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "function",
                                              "type": "object",
                                              "description": "The definition of the function that was called.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "name",
                                                  "type": "string",
                                                  "description": "The name of the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "arguments",
                                                  "type": "string",
                                                  "description": "The arguments passed to the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "output",
                                                  "type": "string",
                                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "nullable",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error` or `rate_limit_exceeded`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expired_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunStepCompletionUsage",
                              "canonical": "objects/RunStepCompletionUsage",
                              "label": "RunStepCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when parts of a [run step](/docs/api-reference/run-steps/step-object) are being streamed.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.delta"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.delta",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a run step delta i.e. any changed fields on a run step during streaming.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepDeltaObject",
                          "canonical": "objects/RunStepDeltaObject",
                          "label": "thread.run.step.delta"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step.delta`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step.delta"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step.delta",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "delta",
                            "type": "object",
                            "description": "The delta containing the fields that have changed on the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "step_details",
                                "type": "$$xor",
                                "description": "The details of the run step.",
                                "properties": [
                                  {
                                    "name": "Message creation",
                                    "type": "object",
                                    "description": "Details of the message creation by the run step.",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunStepDeltaStepDetailsMessageCreationObject",
                                      "canonical": "objects/RunStepDeltaStepDetailsMessageCreationObject",
                                      "label": "RunStepDeltaStepDetailsMessageCreationObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Always `message_creation`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "message_creation"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "message_creation",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "message_creation",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "properties": [
                                          {
                                            "name": "message_id",
                                            "type": "string",
                                            "description": "The ID of the message that was created by this run step.",
                                            "meta": []
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "name": "Tool calls",
                                    "type": "object",
                                    "description": "Details of the tool call.",
                                    "meta": [],
                                    "symbolDef": {
                                      "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsObject",
                                      "canonical": "objects/RunStepDeltaStepDetailsToolCallsObject",
                                      "label": "RunStepDeltaStepDetailsToolCallsObject"
                                    },
                                    "properties": [
                                      {
                                        "name": "type",
                                        "type": "$$enum",
                                        "description": "Always `tool_calls`.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          },
                                          {
                                            "name": "enum-type",
                                            "value": "string"
                                          },
                                          {
                                            "name": "const",
                                            "value": "tool_calls"
                                          }
                                        ],
                                        "properties": [
                                          {
                                            "name": "tool_calls",
                                            "type": "string",
                                            "description": "",
                                            "meta": []
                                          }
                                        ],
                                        "ofProperty": {
                                          "name": "",
                                          "description": "",
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "name": "tool_calls",
                                        "type": "$$array",
                                        "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                        "meta": [],
                                        "properties": [],
                                        "ofProperty": {
                                          "name": "",
                                          "type": "$$xor",
                                          "properties": [
                                            {
                                              "name": "Code interpreter tool call",
                                              "type": "object",
                                              "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                              "meta": [],
                                              "symbolDef": {
                                                "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeObject",
                                                "canonical": "objects/RunStepDeltaStepDetailsToolCallsCodeObject",
                                                "label": "RunStepDeltaStepDetailsToolCallsCodeObject"
                                              },
                                              "properties": [
                                                {
                                                  "name": "index",
                                                  "type": "integer",
                                                  "description": "The index of the tool call in the tool calls array.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "id",
                                                  "type": "string",
                                                  "description": "The ID of the tool call.",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "code_interpreter"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "code_interpreter",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "object",
                                                  "description": "The Code Interpreter tool call definition.",
                                                  "meta": [],
                                                  "properties": [
                                                    {
                                                      "name": "input",
                                                      "type": "string",
                                                      "description": "The input to the Code Interpreter tool call.",
                                                      "meta": []
                                                    },
                                                    {
                                                      "name": "outputs",
                                                      "type": "$$array",
                                                      "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                      "meta": [],
                                                      "properties": [],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "type": "$$xor",
                                                        "properties": [
                                                          {
                                                            "name": "Code interpreter log output",
                                                            "type": "object",
                                                            "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                            "meta": [],
                                                            "symbolDef": {
                                                              "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject",
                                                              "canonical": "objects/RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject",
                                                              "label": "RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject"
                                                            },
                                                            "properties": [
                                                              {
                                                                "name": "index",
                                                                "type": "integer",
                                                                "description": "The index of the output in the outputs array.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "name": "type",
                                                                "type": "$$enum",
                                                                "description": "Always `logs`.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  },
                                                                  {
                                                                    "name": "enum-type",
                                                                    "value": "string"
                                                                  },
                                                                  {
                                                                    "name": "const",
                                                                    "value": "logs"
                                                                  }
                                                                ],
                                                                "properties": [
                                                                  {
                                                                    "name": "logs",
                                                                    "type": "string",
                                                                    "description": "",
                                                                    "meta": []
                                                                  }
                                                                ],
                                                                "ofProperty": {
                                                                  "name": "",
                                                                  "description": "",
                                                                  "type": "string"
                                                                }
                                                              },
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "The text output from the Code Interpreter tool call.",
                                                                "meta": []
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "name": "Code interpreter image output",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [],
                                                            "symbolDef": {
                                                              "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject",
                                                              "canonical": "objects/RunStepDeltaStepDetailsToolCallsCodeOutputImageObject",
                                                              "label": "RunStepDeltaStepDetailsToolCallsCodeOutputImageObject"
                                                            },
                                                            "properties": [
                                                              {
                                                                "name": "index",
                                                                "type": "integer",
                                                                "description": "The index of the output in the outputs array.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "name": "type",
                                                                "type": "$$enum",
                                                                "description": "Always `image`.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  },
                                                                  {
                                                                    "name": "enum-type",
                                                                    "value": "string"
                                                                  },
                                                                  {
                                                                    "name": "const",
                                                                    "value": "image"
                                                                  }
                                                                ],
                                                                "properties": [
                                                                  {
                                                                    "name": "image",
                                                                    "type": "string",
                                                                    "description": "",
                                                                    "meta": []
                                                                  }
                                                                ],
                                                                "ofProperty": {
                                                                  "name": "",
                                                                  "description": "",
                                                                  "type": "string"
                                                                }
                                                              },
                                                              {
                                                                "name": "image",
                                                                "type": "object",
                                                                "description": "",
                                                                "meta": [],
                                                                "properties": [
                                                                  {
                                                                    "name": "file_id",
                                                                    "type": "string",
                                                                    "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                    "meta": []
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "name": "File search tool call",
                                              "type": "object",
                                              "description": "",
                                              "meta": [],
                                              "symbolDef": {
                                                "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsFileSearchObject",
                                                "canonical": "objects/RunStepDeltaStepDetailsToolCallsFileSearchObject",
                                                "label": "RunStepDeltaStepDetailsToolCallsFileSearchObject"
                                              },
                                              "properties": [
                                                {
                                                  "name": "index",
                                                  "type": "integer",
                                                  "description": "The index of the tool call in the tool calls array.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "id",
                                                  "type": "string",
                                                  "description": "The ID of the tool call object.",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "file_search"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "file_search",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "file_search",
                                                  "type": "object",
                                                  "description": "For now, this is always going to be an empty object.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "name": "Function tool call",
                                              "type": "object",
                                              "description": "",
                                              "meta": [],
                                              "symbolDef": {
                                                "id": "#/components/schemas/RunStepDeltaStepDetailsToolCallsFunctionObject",
                                                "canonical": "objects/RunStepDeltaStepDetailsToolCallsFunctionObject",
                                                "label": "RunStepDeltaStepDetailsToolCallsFunctionObject"
                                              },
                                              "properties": [
                                                {
                                                  "name": "index",
                                                  "type": "integer",
                                                  "description": "The index of the tool call in the tool calls array.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "id",
                                                  "type": "string",
                                                  "description": "The ID of the tool call object.",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "type",
                                                  "type": "$$enum",
                                                  "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "enum-type",
                                                      "value": "string"
                                                    },
                                                    {
                                                      "name": "const",
                                                      "value": "function"
                                                    }
                                                  ],
                                                  "properties": [
                                                    {
                                                      "name": "function",
                                                      "type": "string",
                                                      "description": "",
                                                      "meta": []
                                                    }
                                                  ],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "description": "",
                                                    "type": "string"
                                                  }
                                                },
                                                {
                                                  "name": "function",
                                                  "type": "object",
                                                  "description": "The definition of the function that was called.",
                                                  "meta": [],
                                                  "properties": [
                                                    {
                                                      "name": "name",
                                                      "type": "string",
                                                      "description": "The name of the function.",
                                                      "meta": []
                                                    },
                                                    {
                                                      "name": "arguments",
                                                      "type": "string",
                                                      "description": "The arguments passed to the function.",
                                                      "meta": []
                                                    },
                                                    {
                                                      "name": "output",
                                                      "type": "string",
                                                      "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                      "meta": [
                                                        {
                                                          "name": "nullable",
                                                          "value": "true"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ],
                                          "description": "",
                                          "meta": []
                                        }
                                      }
                                    ]
                                  }
                                ],
                                "meta": []
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run step](/docs/api-reference/run-steps/step-object) is completed.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.completed"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.completed",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a step in execution of a run.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepObject",
                          "canonical": "objects/RunStepObject",
                          "label": "thread.run.step"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message_creation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "tool_calls",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "step_details",
                            "type": "$$xor",
                            "description": "The details of the run step.",
                            "properties": [
                              {
                                "name": "Message creation",
                                "type": "object",
                                "description": "Details of the message creation by the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                                  "label": "RunStepDetailsMessageCreationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `message_creation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message_creation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_creation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "message_creation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_id",
                                        "type": "string",
                                        "description": "The ID of the message that was created by this run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Tool calls",
                                "type": "object",
                                "description": "Details of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                                  "canonical": "objects/RunStepDetailsToolCallsObject",
                                  "label": "RunStepDetailsToolCallsObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `tool_calls`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "tool_calls"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "tool_calls",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "Code Interpreter tool call",
                                          "type": "object",
                                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                                            "label": "RunStepDetailsToolCallsCodeObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "code_interpreter"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "code_interpreter",
                                              "type": "object",
                                              "description": "The Code Interpreter tool call definition.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input",
                                                  "type": "string",
                                                  "description": "The input to the Code Interpreter tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "outputs",
                                                  "type": "$$array",
                                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "$$xor",
                                                    "properties": [
                                                      {
                                                        "name": "Code Interpreter log output",
                                                        "type": "object",
                                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `logs`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "logs"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "logs",
                                                            "type": "string",
                                                            "description": "The text output from the Code Interpreter tool call.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "Code Interpreter image output",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `image`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "image"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "image",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "image",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "file_id",
                                                                "type": "string",
                                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File search tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                                            "label": "RunStepDetailsToolCallsFileSearchObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_search"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_search",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_search",
                                              "type": "object",
                                              "description": "For now, this is always going to be an empty object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "ranking_options",
                                                  "type": "object",
                                                  "description": "The ranking options for the file search.",
                                                  "meta": [],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "ranker",
                                                      "type": "$$enum",
                                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                                      "meta": [
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "auto",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        },
                                                        {
                                                          "name": "default_2024_08_21",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      },
                                                      "symbolDef": {
                                                        "id": "#/components/schemas/FileSearchRanker",
                                                        "canonical": "objects/FileSearchRanker",
                                                        "label": "FileSearchRanker"
                                                      }
                                                    },
                                                    {
                                                      "name": "score_threshold",
                                                      "type": "number",
                                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "maximum",
                                                          "value": 1
                                                        },
                                                        {
                                                          "name": "minimum",
                                                          "value": 0
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "results",
                                                  "type": "$$array",
                                                  "description": "The results of the file search.",
                                                  "meta": [],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "object",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_name",
                                                        "type": "string",
                                                        "description": "The name of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "score",
                                                        "type": "number",
                                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "maximum",
                                                            "value": 1
                                                          },
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "content",
                                                        "type": "$$array",
                                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                                        "meta": [],
                                                        "properties": [],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "type": "object",
                                                          "properties": [
                                                            {
                                                              "name": "type",
                                                              "type": "$$enum",
                                                              "description": "The type of the content.",
                                                              "meta": [
                                                                {
                                                                  "name": "enum-type",
                                                                  "value": "string"
                                                                },
                                                                {
                                                                  "name": "const",
                                                                  "value": "text"
                                                                }
                                                              ],
                                                              "properties": [
                                                                {
                                                                  "name": "text",
                                                                  "type": "string",
                                                                  "description": "",
                                                                  "meta": []
                                                                }
                                                              ],
                                                              "ofProperty": {
                                                                "name": "",
                                                                "description": "",
                                                                "type": "string"
                                                              }
                                                            },
                                                            {
                                                              "name": "text",
                                                              "type": "string",
                                                              "description": "The text content of the file.",
                                                              "meta": []
                                                            }
                                                          ],
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      }
                                                    ],
                                                    "description": "A result instance of the file search.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                    }
                                                  },
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Function tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                                            "label": "RunStepDetailsToolCallsFunctionObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "function"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "function",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "function",
                                              "type": "object",
                                              "description": "The definition of the function that was called.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "name",
                                                  "type": "string",
                                                  "description": "The name of the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "arguments",
                                                  "type": "string",
                                                  "description": "The arguments passed to the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "output",
                                                  "type": "string",
                                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "nullable",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error` or `rate_limit_exceeded`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expired_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunStepCompletionUsage",
                              "canonical": "objects/RunStepCompletionUsage",
                              "label": "RunStepCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run step](/docs/api-reference/run-steps/step-object) fails.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.failed"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.failed",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a step in execution of a run.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepObject",
                          "canonical": "objects/RunStepObject",
                          "label": "thread.run.step"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message_creation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "tool_calls",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "step_details",
                            "type": "$$xor",
                            "description": "The details of the run step.",
                            "properties": [
                              {
                                "name": "Message creation",
                                "type": "object",
                                "description": "Details of the message creation by the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                                  "label": "RunStepDetailsMessageCreationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `message_creation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message_creation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_creation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "message_creation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_id",
                                        "type": "string",
                                        "description": "The ID of the message that was created by this run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Tool calls",
                                "type": "object",
                                "description": "Details of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                                  "canonical": "objects/RunStepDetailsToolCallsObject",
                                  "label": "RunStepDetailsToolCallsObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `tool_calls`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "tool_calls"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "tool_calls",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "Code Interpreter tool call",
                                          "type": "object",
                                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                                            "label": "RunStepDetailsToolCallsCodeObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "code_interpreter"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "code_interpreter",
                                              "type": "object",
                                              "description": "The Code Interpreter tool call definition.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input",
                                                  "type": "string",
                                                  "description": "The input to the Code Interpreter tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "outputs",
                                                  "type": "$$array",
                                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "$$xor",
                                                    "properties": [
                                                      {
                                                        "name": "Code Interpreter log output",
                                                        "type": "object",
                                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `logs`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "logs"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "logs",
                                                            "type": "string",
                                                            "description": "The text output from the Code Interpreter tool call.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "Code Interpreter image output",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `image`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "image"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "image",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "image",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "file_id",
                                                                "type": "string",
                                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File search tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                                            "label": "RunStepDetailsToolCallsFileSearchObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_search"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_search",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_search",
                                              "type": "object",
                                              "description": "For now, this is always going to be an empty object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "ranking_options",
                                                  "type": "object",
                                                  "description": "The ranking options for the file search.",
                                                  "meta": [],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "ranker",
                                                      "type": "$$enum",
                                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                                      "meta": [
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "auto",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        },
                                                        {
                                                          "name": "default_2024_08_21",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      },
                                                      "symbolDef": {
                                                        "id": "#/components/schemas/FileSearchRanker",
                                                        "canonical": "objects/FileSearchRanker",
                                                        "label": "FileSearchRanker"
                                                      }
                                                    },
                                                    {
                                                      "name": "score_threshold",
                                                      "type": "number",
                                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "maximum",
                                                          "value": 1
                                                        },
                                                        {
                                                          "name": "minimum",
                                                          "value": 0
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "results",
                                                  "type": "$$array",
                                                  "description": "The results of the file search.",
                                                  "meta": [],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "object",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_name",
                                                        "type": "string",
                                                        "description": "The name of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "score",
                                                        "type": "number",
                                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "maximum",
                                                            "value": 1
                                                          },
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "content",
                                                        "type": "$$array",
                                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                                        "meta": [],
                                                        "properties": [],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "type": "object",
                                                          "properties": [
                                                            {
                                                              "name": "type",
                                                              "type": "$$enum",
                                                              "description": "The type of the content.",
                                                              "meta": [
                                                                {
                                                                  "name": "enum-type",
                                                                  "value": "string"
                                                                },
                                                                {
                                                                  "name": "const",
                                                                  "value": "text"
                                                                }
                                                              ],
                                                              "properties": [
                                                                {
                                                                  "name": "text",
                                                                  "type": "string",
                                                                  "description": "",
                                                                  "meta": []
                                                                }
                                                              ],
                                                              "ofProperty": {
                                                                "name": "",
                                                                "description": "",
                                                                "type": "string"
                                                              }
                                                            },
                                                            {
                                                              "name": "text",
                                                              "type": "string",
                                                              "description": "The text content of the file.",
                                                              "meta": []
                                                            }
                                                          ],
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      }
                                                    ],
                                                    "description": "A result instance of the file search.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                    }
                                                  },
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Function tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                                            "label": "RunStepDetailsToolCallsFunctionObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "function"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "function",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "function",
                                              "type": "object",
                                              "description": "The definition of the function that was called.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "name",
                                                  "type": "string",
                                                  "description": "The name of the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "arguments",
                                                  "type": "string",
                                                  "description": "The arguments passed to the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "output",
                                                  "type": "string",
                                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "nullable",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error` or `rate_limit_exceeded`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expired_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunStepCompletionUsage",
                              "canonical": "objects/RunStepCompletionUsage",
                              "label": "RunStepCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run step](/docs/api-reference/run-steps/step-object) is cancelled.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.cancelled"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.cancelled",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a step in execution of a run.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepObject",
                          "canonical": "objects/RunStepObject",
                          "label": "thread.run.step"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message_creation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "tool_calls",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "step_details",
                            "type": "$$xor",
                            "description": "The details of the run step.",
                            "properties": [
                              {
                                "name": "Message creation",
                                "type": "object",
                                "description": "Details of the message creation by the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                                  "label": "RunStepDetailsMessageCreationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `message_creation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message_creation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_creation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "message_creation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_id",
                                        "type": "string",
                                        "description": "The ID of the message that was created by this run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Tool calls",
                                "type": "object",
                                "description": "Details of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                                  "canonical": "objects/RunStepDetailsToolCallsObject",
                                  "label": "RunStepDetailsToolCallsObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `tool_calls`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "tool_calls"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "tool_calls",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "Code Interpreter tool call",
                                          "type": "object",
                                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                                            "label": "RunStepDetailsToolCallsCodeObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "code_interpreter"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "code_interpreter",
                                              "type": "object",
                                              "description": "The Code Interpreter tool call definition.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input",
                                                  "type": "string",
                                                  "description": "The input to the Code Interpreter tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "outputs",
                                                  "type": "$$array",
                                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "$$xor",
                                                    "properties": [
                                                      {
                                                        "name": "Code Interpreter log output",
                                                        "type": "object",
                                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `logs`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "logs"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "logs",
                                                            "type": "string",
                                                            "description": "The text output from the Code Interpreter tool call.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "Code Interpreter image output",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `image`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "image"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "image",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "image",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "file_id",
                                                                "type": "string",
                                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File search tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                                            "label": "RunStepDetailsToolCallsFileSearchObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_search"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_search",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_search",
                                              "type": "object",
                                              "description": "For now, this is always going to be an empty object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "ranking_options",
                                                  "type": "object",
                                                  "description": "The ranking options for the file search.",
                                                  "meta": [],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "ranker",
                                                      "type": "$$enum",
                                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                                      "meta": [
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "auto",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        },
                                                        {
                                                          "name": "default_2024_08_21",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      },
                                                      "symbolDef": {
                                                        "id": "#/components/schemas/FileSearchRanker",
                                                        "canonical": "objects/FileSearchRanker",
                                                        "label": "FileSearchRanker"
                                                      }
                                                    },
                                                    {
                                                      "name": "score_threshold",
                                                      "type": "number",
                                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "maximum",
                                                          "value": 1
                                                        },
                                                        {
                                                          "name": "minimum",
                                                          "value": 0
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "results",
                                                  "type": "$$array",
                                                  "description": "The results of the file search.",
                                                  "meta": [],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "object",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_name",
                                                        "type": "string",
                                                        "description": "The name of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "score",
                                                        "type": "number",
                                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "maximum",
                                                            "value": 1
                                                          },
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "content",
                                                        "type": "$$array",
                                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                                        "meta": [],
                                                        "properties": [],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "type": "object",
                                                          "properties": [
                                                            {
                                                              "name": "type",
                                                              "type": "$$enum",
                                                              "description": "The type of the content.",
                                                              "meta": [
                                                                {
                                                                  "name": "enum-type",
                                                                  "value": "string"
                                                                },
                                                                {
                                                                  "name": "const",
                                                                  "value": "text"
                                                                }
                                                              ],
                                                              "properties": [
                                                                {
                                                                  "name": "text",
                                                                  "type": "string",
                                                                  "description": "",
                                                                  "meta": []
                                                                }
                                                              ],
                                                              "ofProperty": {
                                                                "name": "",
                                                                "description": "",
                                                                "type": "string"
                                                              }
                                                            },
                                                            {
                                                              "name": "text",
                                                              "type": "string",
                                                              "description": "The text content of the file.",
                                                              "meta": []
                                                            }
                                                          ],
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      }
                                                    ],
                                                    "description": "A result instance of the file search.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                    }
                                                  },
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Function tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                                            "label": "RunStepDetailsToolCallsFunctionObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "function"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "function",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "function",
                                              "type": "object",
                                              "description": "The definition of the function that was called.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "name",
                                                  "type": "string",
                                                  "description": "The name of the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "arguments",
                                                  "type": "string",
                                                  "description": "The arguments passed to the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "output",
                                                  "type": "string",
                                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "nullable",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error` or `rate_limit_exceeded`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expired_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunStepCompletionUsage",
                              "canonical": "objects/RunStepCompletionUsage",
                              "label": "RunStepCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [run step](/docs/api-reference/run-steps/step-object) expires.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.run.step.expired"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.run.step.expired",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a step in execution of a run.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/RunStepObject",
                          "canonical": "objects/RunStepObject",
                          "label": "thread.run.step"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the run step, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.run.step`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.run.step"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.run.step",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The ID of the [thread](/docs/api-reference/threads) that was run.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "type",
                            "type": "$$enum",
                            "description": "The type of run step, which can be either `message_creation` or `tool_calls`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "message_creation",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "tool_calls",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "cancelled",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "failed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "expired",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "step_details",
                            "type": "$$xor",
                            "description": "The details of the run step.",
                            "properties": [
                              {
                                "name": "Message creation",
                                "type": "object",
                                "description": "Details of the message creation by the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsMessageCreationObject",
                                  "canonical": "objects/RunStepDetailsMessageCreationObject",
                                  "label": "RunStepDetailsMessageCreationObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `message_creation`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "message_creation"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_creation",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "message_creation",
                                    "type": "object",
                                    "description": "",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "message_id",
                                        "type": "string",
                                        "description": "The ID of the message that was created by this run step.",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "name": "Tool calls",
                                "type": "object",
                                "description": "Details of the tool call.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ],
                                "symbolDef": {
                                  "id": "#/components/schemas/RunStepDetailsToolCallsObject",
                                  "canonical": "objects/RunStepDetailsToolCallsObject",
                                  "label": "RunStepDetailsToolCallsObject"
                                },
                                "properties": [
                                  {
                                    "name": "type",
                                    "type": "$$enum",
                                    "description": "Always `tool_calls`.",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      },
                                      {
                                        "name": "enum-type",
                                        "value": "string"
                                      },
                                      {
                                        "name": "const",
                                        "value": "tool_calls"
                                      }
                                    ],
                                    "properties": [
                                      {
                                        "name": "tool_calls",
                                        "type": "string",
                                        "description": "",
                                        "meta": []
                                      }
                                    ],
                                    "ofProperty": {
                                      "name": "",
                                      "description": "",
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "name": "tool_calls",
                                    "type": "$$array",
                                    "description": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.\n",
                                    "meta": [
                                      {
                                        "name": "required",
                                        "value": "true"
                                      }
                                    ],
                                    "properties": [],
                                    "ofProperty": {
                                      "name": "",
                                      "type": "$$xor",
                                      "properties": [
                                        {
                                          "name": "Code Interpreter tool call",
                                          "type": "object",
                                          "description": "Details of the Code Interpreter tool call the run step was involved in.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsCodeObject",
                                            "canonical": "objects/RunStepDetailsToolCallsCodeObject",
                                            "label": "RunStepDetailsToolCallsCodeObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "code_interpreter"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "code_interpreter",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "code_interpreter",
                                              "type": "object",
                                              "description": "The Code Interpreter tool call definition.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "input",
                                                  "type": "string",
                                                  "description": "The input to the Code Interpreter tool call.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "outputs",
                                                  "type": "$$array",
                                                  "description": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "$$xor",
                                                    "properties": [
                                                      {
                                                        "name": "Code Interpreter log output",
                                                        "type": "object",
                                                        "description": "Text output from the Code Interpreter tool call as part of a run step.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputLogsObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputLogsObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `logs`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "logs"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "logs",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "logs",
                                                            "type": "string",
                                                            "description": "The text output from the Code Interpreter tool call.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "Code Interpreter image output",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ],
                                                        "symbolDef": {
                                                          "id": "#/components/schemas/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "canonical": "objects/RunStepDetailsToolCallsCodeOutputImageObject",
                                                          "label": "RunStepDetailsToolCallsCodeOutputImageObject"
                                                        },
                                                        "properties": [
                                                          {
                                                            "name": "type",
                                                            "type": "$$enum",
                                                            "description": "Always `image`.",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              },
                                                              {
                                                                "name": "enum-type",
                                                                "value": "string"
                                                              },
                                                              {
                                                                "name": "const",
                                                                "value": "image"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "image",
                                                                "type": "string",
                                                                "description": "",
                                                                "meta": []
                                                              }
                                                            ],
                                                            "ofProperty": {
                                                              "name": "",
                                                              "description": "",
                                                              "type": "string"
                                                            }
                                                          },
                                                          {
                                                            "name": "image",
                                                            "type": "object",
                                                            "description": "",
                                                            "meta": [
                                                              {
                                                                "name": "required",
                                                                "value": "true"
                                                              }
                                                            ],
                                                            "properties": [
                                                              {
                                                                "name": "file_id",
                                                                "type": "string",
                                                                "description": "The [file](/docs/api-reference/files) ID of the image.",
                                                                "meta": [
                                                                  {
                                                                    "name": "required",
                                                                    "value": "true"
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "File search tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFileSearchObject",
                                            "label": "RunStepDetailsToolCallsFileSearchObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `file_search` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "file_search"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "file_search",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "file_search",
                                              "type": "object",
                                              "description": "For now, this is always going to be an empty object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "ranking_options",
                                                  "type": "object",
                                                  "description": "The ranking options for the file search.",
                                                  "meta": [],
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchRankingOptionsObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchRankingOptionsObject"
                                                  },
                                                  "properties": [
                                                    {
                                                      "name": "ranker",
                                                      "type": "$$enum",
                                                      "description": "The ranker to use for the file search. If not specified will use the `auto` ranker.",
                                                      "meta": [
                                                        {
                                                          "name": "enum-type",
                                                          "value": "string"
                                                        }
                                                      ],
                                                      "properties": [
                                                        {
                                                          "name": "auto",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        },
                                                        {
                                                          "name": "default_2024_08_21",
                                                          "type": "string",
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      ],
                                                      "ofProperty": {
                                                        "name": "",
                                                        "description": "",
                                                        "type": "string"
                                                      },
                                                      "symbolDef": {
                                                        "id": "#/components/schemas/FileSearchRanker",
                                                        "canonical": "objects/FileSearchRanker",
                                                        "label": "FileSearchRanker"
                                                      }
                                                    },
                                                    {
                                                      "name": "score_threshold",
                                                      "type": "number",
                                                      "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1.",
                                                      "meta": [
                                                        {
                                                          "name": "required",
                                                          "value": "true"
                                                        },
                                                        {
                                                          "name": "maximum",
                                                          "value": 1
                                                        },
                                                        {
                                                          "name": "minimum",
                                                          "value": 0
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "results",
                                                  "type": "$$array",
                                                  "description": "The results of the file search.",
                                                  "meta": [],
                                                  "properties": [],
                                                  "ofProperty": {
                                                    "name": "",
                                                    "type": "object",
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "file_name",
                                                        "type": "string",
                                                        "description": "The name of the file that result was found in.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "score",
                                                        "type": "number",
                                                        "description": "The score of the result. All values must be a floating point number between 0 and 1.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "maximum",
                                                            "value": 1
                                                          },
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "content",
                                                        "type": "$$array",
                                                        "description": "The content of the result that was found. The content is only included if requested via the include query parameter.",
                                                        "meta": [],
                                                        "properties": [],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "type": "object",
                                                          "properties": [
                                                            {
                                                              "name": "type",
                                                              "type": "$$enum",
                                                              "description": "The type of the content.",
                                                              "meta": [
                                                                {
                                                                  "name": "enum-type",
                                                                  "value": "string"
                                                                },
                                                                {
                                                                  "name": "const",
                                                                  "value": "text"
                                                                }
                                                              ],
                                                              "properties": [
                                                                {
                                                                  "name": "text",
                                                                  "type": "string",
                                                                  "description": "",
                                                                  "meta": []
                                                                }
                                                              ],
                                                              "ofProperty": {
                                                                "name": "",
                                                                "description": "",
                                                                "type": "string"
                                                              }
                                                            },
                                                            {
                                                              "name": "text",
                                                              "type": "string",
                                                              "description": "The text content of the file.",
                                                              "meta": []
                                                            }
                                                          ],
                                                          "description": "",
                                                          "meta": []
                                                        }
                                                      }
                                                    ],
                                                    "description": "A result instance of the file search.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                      "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                    }
                                                  },
                                                  "symbolDef": {
                                                    "id": "#/components/schemas/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "canonical": "objects/RunStepDetailsToolCallsFileSearchResultObject",
                                                    "label": "RunStepDetailsToolCallsFileSearchResultObject"
                                                  }
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "name": "Function tool call",
                                          "type": "object",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "symbolDef": {
                                            "id": "#/components/schemas/RunStepDetailsToolCallsFunctionObject",
                                            "canonical": "objects/RunStepDetailsToolCallsFunctionObject",
                                            "label": "RunStepDetailsToolCallsFunctionObject"
                                          },
                                          "properties": [
                                            {
                                              "name": "id",
                                              "type": "string",
                                              "description": "The ID of the tool call object.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ]
                                            },
                                            {
                                              "name": "type",
                                              "type": "$$enum",
                                              "description": "The type of tool call. This is always going to be `function` for this type of tool call.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                },
                                                {
                                                  "name": "const",
                                                  "value": "function"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "function",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            },
                                            {
                                              "name": "function",
                                              "type": "object",
                                              "description": "The definition of the function that was called.",
                                              "meta": [
                                                {
                                                  "name": "required",
                                                  "value": "true"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "name",
                                                  "type": "string",
                                                  "description": "The name of the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "arguments",
                                                  "type": "string",
                                                  "description": "The arguments passed to the function.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    }
                                                  ]
                                                },
                                                {
                                                  "name": "output",
                                                  "type": "string",
                                                  "description": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.",
                                                  "meta": [
                                                    {
                                                      "name": "required",
                                                      "value": "true"
                                                    },
                                                    {
                                                      "name": "nullable",
                                                      "value": "true"
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ],
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ],
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "last_error",
                            "type": "object",
                            "description": "The last error associated with this run step. Will be `null` if there are no errors.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "code",
                                "type": "$$enum",
                                "description": "One of `server_error` or `rate_limit_exceeded`.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "server_error",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "rate_limit_exceeded",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "message",
                                "type": "string",
                                "description": "A human-readable description of the error.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "name": "expired_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "cancelled_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step was cancelled.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "failed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step failed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the run step completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          },
                          {
                            "name": "usage",
                            "type": "object",
                            "description": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/RunStepCompletionUsage",
                              "canonical": "objects/RunStepCompletionUsage",
                              "label": "RunStepCompletionUsage"
                            },
                            "properties": [
                              {
                                "name": "completion_tokens",
                                "type": "integer",
                                "description": "Number of completion tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "prompt_tokens",
                                "type": "integer",
                                "description": "Number of prompt tokens used over the course of the run step.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              },
                              {
                                "name": "total_tokens",
                                "type": "integer",
                                "description": "Total number of tokens used (prompt + completion).",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/RunStepStreamEvent",
                  "canonical": "objects/RunStepStreamEvent",
                  "label": "RunStepStreamEvent"
                }
              },
              {
                "name": "",
                "type": "$$xor",
                "description": "",
                "properties": [
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [message](/docs/api-reference/messages/object) is created.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.message.created"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.message.created",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a message within a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/MessageObject",
                          "canonical": "objects/MessageObject",
                          "label": "thread.message"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.message`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.message"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.message",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The [thread](/docs/api-reference/threads) ID that this message belongs to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "On an incomplete message, details about why the message is incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason the message is incomplete.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "content_filter",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_cancelled",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_expired",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_failed",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was marked as incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The entity that produced the message. One of `user` or `assistant`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "user",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the message in array of text and/or images.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Image file",
                                  "type": "object",
                                  "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageFileObject",
                                    "canonical": "objects/MessageContentImageFileObject",
                                    "label": "MessageContentImageFileObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `image_file`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_file"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_file",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_file",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Image URL",
                                  "type": "object",
                                  "description": "References an image URL in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageUrlObject",
                                    "canonical": "objects/MessageContentImageUrlObject",
                                    "label": "MessageContentImageUrlObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the content part.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_url"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_url",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_url",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "url",
                                          "type": "string",
                                          "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Text",
                                  "type": "object",
                                  "description": "The text content that is part of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentTextObject",
                                    "canonical": "objects/MessageContentTextObject",
                                    "label": "MessageContentTextObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `text`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "value",
                                          "type": "string",
                                          "description": "The data that makes up the text.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "annotations",
                                          "type": "$$array",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "ofProperty": {
                                            "name": "",
                                            "type": "$$xor",
                                            "properties": [
                                              {
                                                "name": "File citation",
                                                "type": "object",
                                                "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFileCitationObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFileCitationObject",
                                                  "label": "MessageContentTextAnnotationsFileCitationObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_citation`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_citation"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_citation",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_citation",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the specific File the citation is from.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "File path",
                                                "type": "object",
                                                "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFilePathObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFilePathObject",
                                                  "label": "MessageContentTextAnnotationsFilePathObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_path`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_path"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_path",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_path",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that was generated.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Refusal",
                                  "type": "object",
                                  "description": "The refusal content generated by the assistant.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentRefusalObject",
                                    "canonical": "objects/MessageContentRefusalObject",
                                    "label": "MessageContentRefusalObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `refusal`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "refusal"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "refusal",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "refusal",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "nullable",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "attachments",
                            "type": "$$array",
                            "description": "A list of files attached to the message, and the tools they were added to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "file_id",
                                  "type": "string",
                                  "description": "The ID of the file to attach to the message.",
                                  "meta": []
                                },
                                {
                                  "name": "tools",
                                  "type": "$$array",
                                  "description": "The tools to add this file to.",
                                  "meta": [],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Code interpreter tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsCode",
                                          "canonical": "objects/AssistantToolsCode",
                                          "label": "AssistantToolsCode"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `code_interpreter`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "code_interpreter"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "code_interpreter",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "FileSearch tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                          "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                          "label": "AssistantToolsFileSearchTypeOnly"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `file_search`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "file_search"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "file_search",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": []
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [message](/docs/api-reference/messages/object) moves to an `in_progress` state.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.message.in_progress"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.message.in_progress",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a message within a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/MessageObject",
                          "canonical": "objects/MessageObject",
                          "label": "thread.message"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.message`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.message"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.message",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The [thread](/docs/api-reference/threads) ID that this message belongs to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "On an incomplete message, details about why the message is incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason the message is incomplete.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "content_filter",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_cancelled",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_expired",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_failed",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was marked as incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The entity that produced the message. One of `user` or `assistant`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "user",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the message in array of text and/or images.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Image file",
                                  "type": "object",
                                  "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageFileObject",
                                    "canonical": "objects/MessageContentImageFileObject",
                                    "label": "MessageContentImageFileObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `image_file`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_file"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_file",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_file",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Image URL",
                                  "type": "object",
                                  "description": "References an image URL in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageUrlObject",
                                    "canonical": "objects/MessageContentImageUrlObject",
                                    "label": "MessageContentImageUrlObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the content part.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_url"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_url",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_url",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "url",
                                          "type": "string",
                                          "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Text",
                                  "type": "object",
                                  "description": "The text content that is part of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentTextObject",
                                    "canonical": "objects/MessageContentTextObject",
                                    "label": "MessageContentTextObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `text`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "value",
                                          "type": "string",
                                          "description": "The data that makes up the text.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "annotations",
                                          "type": "$$array",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "ofProperty": {
                                            "name": "",
                                            "type": "$$xor",
                                            "properties": [
                                              {
                                                "name": "File citation",
                                                "type": "object",
                                                "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFileCitationObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFileCitationObject",
                                                  "label": "MessageContentTextAnnotationsFileCitationObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_citation`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_citation"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_citation",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_citation",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the specific File the citation is from.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "File path",
                                                "type": "object",
                                                "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFilePathObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFilePathObject",
                                                  "label": "MessageContentTextAnnotationsFilePathObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_path`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_path"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_path",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_path",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that was generated.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Refusal",
                                  "type": "object",
                                  "description": "The refusal content generated by the assistant.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentRefusalObject",
                                    "canonical": "objects/MessageContentRefusalObject",
                                    "label": "MessageContentRefusalObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `refusal`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "refusal"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "refusal",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "refusal",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "nullable",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "attachments",
                            "type": "$$array",
                            "description": "A list of files attached to the message, and the tools they were added to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "file_id",
                                  "type": "string",
                                  "description": "The ID of the file to attach to the message.",
                                  "meta": []
                                },
                                {
                                  "name": "tools",
                                  "type": "$$array",
                                  "description": "The tools to add this file to.",
                                  "meta": [],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Code interpreter tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsCode",
                                          "canonical": "objects/AssistantToolsCode",
                                          "label": "AssistantToolsCode"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `code_interpreter`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "code_interpreter"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "code_interpreter",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "FileSearch tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                          "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                          "label": "AssistantToolsFileSearchTypeOnly"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `file_search`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "file_search"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "file_search",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": []
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when parts of a [Message](/docs/api-reference/messages/object) are being streamed.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.message.delta"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.message.delta",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a message delta i.e. any changed fields on a message during streaming.\n",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/MessageDeltaObject",
                          "canonical": "objects/MessageDeltaObject",
                          "label": "thread.message.delta"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier of the message, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.message.delta`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.message.delta"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.message.delta",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "delta",
                            "type": "object",
                            "description": "The delta containing the fields that have changed on the Message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "role",
                                "type": "$$enum",
                                "description": "The entity that produced the message. One of `user` or `assistant`.",
                                "meta": [
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "user",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "assistant",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              },
                              {
                                "name": "content",
                                "type": "$$array",
                                "description": "The content of the message in array of text and/or images.",
                                "meta": [],
                                "properties": [],
                                "ofProperty": {
                                  "name": "",
                                  "type": "$$xor",
                                  "properties": [
                                    {
                                      "name": "Image file",
                                      "type": "object",
                                      "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                      "meta": [],
                                      "symbolDef": {
                                        "id": "#/components/schemas/MessageDeltaContentImageFileObject",
                                        "canonical": "objects/MessageDeltaContentImageFileObject",
                                        "label": "MessageDeltaContentImageFileObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the content part in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Always `image_file`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "image_file"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "image_file",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "image_file",
                                          "type": "object",
                                          "description": "",
                                          "meta": [],
                                          "properties": [
                                            {
                                              "name": "file_id",
                                              "type": "string",
                                              "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                              "meta": []
                                            },
                                            {
                                              "name": "detail",
                                              "type": "$$enum",
                                              "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                              "meta": [
                                                {
                                                  "name": "defaults",
                                                  "value": "auto"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "low",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "high",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Text",
                                      "type": "object",
                                      "description": "The text content that is part of a message.",
                                      "meta": [],
                                      "symbolDef": {
                                        "id": "#/components/schemas/MessageDeltaContentTextObject",
                                        "canonical": "objects/MessageDeltaContentTextObject",
                                        "label": "MessageDeltaContentTextObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the content part in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Always `text`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "text"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "text",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "text",
                                          "type": "object",
                                          "description": "",
                                          "meta": [],
                                          "properties": [
                                            {
                                              "name": "value",
                                              "type": "string",
                                              "description": "The data that makes up the text.",
                                              "meta": []
                                            },
                                            {
                                              "name": "annotations",
                                              "type": "$$array",
                                              "description": "",
                                              "meta": [],
                                              "properties": [],
                                              "ofProperty": {
                                                "name": "",
                                                "type": "$$xor",
                                                "properties": [
                                                  {
                                                    "name": "File citation",
                                                    "type": "object",
                                                    "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/MessageDeltaContentTextAnnotationsFileCitationObject",
                                                      "canonical": "objects/MessageDeltaContentTextAnnotationsFileCitationObject",
                                                      "label": "MessageDeltaContentTextAnnotationsFileCitationObject"
                                                    },
                                                    "properties": [
                                                      {
                                                        "name": "index",
                                                        "type": "integer",
                                                        "description": "The index of the annotation in the text content part.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "type",
                                                        "type": "$$enum",
                                                        "description": "Always `file_citation`.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "enum-type",
                                                            "value": "string"
                                                          },
                                                          {
                                                            "name": "const",
                                                            "value": "file_citation"
                                                          }
                                                        ],
                                                        "properties": [
                                                          {
                                                            "name": "file_citation",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "description": "",
                                                          "type": "string"
                                                        }
                                                      },
                                                      {
                                                        "name": "text",
                                                        "type": "string",
                                                        "description": "The text in the message content that needs to be replaced.",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "file_citation",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [],
                                                        "properties": [
                                                          {
                                                            "name": "file_id",
                                                            "type": "string",
                                                            "description": "The ID of the specific File the citation is from.",
                                                            "meta": []
                                                          },
                                                          {
                                                            "name": "quote",
                                                            "type": "string",
                                                            "description": "The specific quote in the file.",
                                                            "meta": []
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "start_index",
                                                        "type": "integer",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "end_index",
                                                        "type": "integer",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "File path",
                                                    "type": "object",
                                                    "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                                    "meta": [],
                                                    "symbolDef": {
                                                      "id": "#/components/schemas/MessageDeltaContentTextAnnotationsFilePathObject",
                                                      "canonical": "objects/MessageDeltaContentTextAnnotationsFilePathObject",
                                                      "label": "MessageDeltaContentTextAnnotationsFilePathObject"
                                                    },
                                                    "properties": [
                                                      {
                                                        "name": "index",
                                                        "type": "integer",
                                                        "description": "The index of the annotation in the text content part.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "type",
                                                        "type": "$$enum",
                                                        "description": "Always `file_path`.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          },
                                                          {
                                                            "name": "enum-type",
                                                            "value": "string"
                                                          },
                                                          {
                                                            "name": "const",
                                                            "value": "file_path"
                                                          }
                                                        ],
                                                        "properties": [
                                                          {
                                                            "name": "file_path",
                                                            "type": "string",
                                                            "description": "",
                                                            "meta": []
                                                          }
                                                        ],
                                                        "ofProperty": {
                                                          "name": "",
                                                          "description": "",
                                                          "type": "string"
                                                        }
                                                      },
                                                      {
                                                        "name": "text",
                                                        "type": "string",
                                                        "description": "The text in the message content that needs to be replaced.",
                                                        "meta": []
                                                      },
                                                      {
                                                        "name": "file_path",
                                                        "type": "object",
                                                        "description": "",
                                                        "meta": [],
                                                        "properties": [
                                                          {
                                                            "name": "file_id",
                                                            "type": "string",
                                                            "description": "The ID of the file that was generated.",
                                                            "meta": []
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "start_index",
                                                        "type": "integer",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "name": "end_index",
                                                        "type": "integer",
                                                        "description": "",
                                                        "meta": [
                                                          {
                                                            "name": "minimum",
                                                            "value": 0
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "description": "",
                                                "meta": []
                                              }
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Refusal",
                                      "type": "object",
                                      "description": "The refusal content that is part of a message.",
                                      "meta": [],
                                      "symbolDef": {
                                        "id": "#/components/schemas/MessageDeltaContentRefusalObject",
                                        "canonical": "objects/MessageDeltaContentRefusalObject",
                                        "label": "MessageDeltaContentRefusalObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the refusal part in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Always `refusal`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "refusal"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "refusal",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "refusal",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ]
                                    },
                                    {
                                      "name": "Image URL",
                                      "type": "object",
                                      "description": "References an image URL in the content of a message.",
                                      "meta": [],
                                      "symbolDef": {
                                        "id": "#/components/schemas/MessageDeltaContentImageUrlObject",
                                        "canonical": "objects/MessageDeltaContentImageUrlObject",
                                        "label": "MessageDeltaContentImageUrlObject"
                                      },
                                      "properties": [
                                        {
                                          "name": "index",
                                          "type": "integer",
                                          "description": "The index of the content part in the message.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "type",
                                          "type": "$$enum",
                                          "description": "Always `image_url`.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            },
                                            {
                                              "name": "const",
                                              "value": "image_url"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "image_url",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        },
                                        {
                                          "name": "image_url",
                                          "type": "object",
                                          "description": "",
                                          "meta": [],
                                          "properties": [
                                            {
                                              "name": "url",
                                              "type": "string",
                                              "description": "The URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                              "meta": []
                                            },
                                            {
                                              "name": "detail",
                                              "type": "$$enum",
                                              "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                              "meta": [
                                                {
                                                  "name": "defaults",
                                                  "value": "auto"
                                                },
                                                {
                                                  "name": "enum-type",
                                                  "value": "string"
                                                }
                                              ],
                                              "properties": [
                                                {
                                                  "name": "auto",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "low",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                },
                                                {
                                                  "name": "high",
                                                  "type": "string",
                                                  "description": "",
                                                  "meta": []
                                                }
                                              ],
                                              "ofProperty": {
                                                "name": "",
                                                "description": "",
                                                "type": "string"
                                              }
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ],
                                  "description": "",
                                  "meta": []
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [message](/docs/api-reference/messages/object) is completed.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.message.completed"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.message.completed",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a message within a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/MessageObject",
                          "canonical": "objects/MessageObject",
                          "label": "thread.message"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.message`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.message"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.message",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The [thread](/docs/api-reference/threads) ID that this message belongs to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "On an incomplete message, details about why the message is incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason the message is incomplete.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "content_filter",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_cancelled",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_expired",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_failed",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was marked as incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The entity that produced the message. One of `user` or `assistant`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "user",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the message in array of text and/or images.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Image file",
                                  "type": "object",
                                  "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageFileObject",
                                    "canonical": "objects/MessageContentImageFileObject",
                                    "label": "MessageContentImageFileObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `image_file`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_file"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_file",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_file",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Image URL",
                                  "type": "object",
                                  "description": "References an image URL in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageUrlObject",
                                    "canonical": "objects/MessageContentImageUrlObject",
                                    "label": "MessageContentImageUrlObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the content part.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_url"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_url",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_url",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "url",
                                          "type": "string",
                                          "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Text",
                                  "type": "object",
                                  "description": "The text content that is part of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentTextObject",
                                    "canonical": "objects/MessageContentTextObject",
                                    "label": "MessageContentTextObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `text`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "value",
                                          "type": "string",
                                          "description": "The data that makes up the text.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "annotations",
                                          "type": "$$array",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "ofProperty": {
                                            "name": "",
                                            "type": "$$xor",
                                            "properties": [
                                              {
                                                "name": "File citation",
                                                "type": "object",
                                                "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFileCitationObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFileCitationObject",
                                                  "label": "MessageContentTextAnnotationsFileCitationObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_citation`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_citation"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_citation",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_citation",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the specific File the citation is from.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "File path",
                                                "type": "object",
                                                "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFilePathObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFilePathObject",
                                                  "label": "MessageContentTextAnnotationsFilePathObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_path`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_path"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_path",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_path",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that was generated.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Refusal",
                                  "type": "object",
                                  "description": "The refusal content generated by the assistant.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentRefusalObject",
                                    "canonical": "objects/MessageContentRefusalObject",
                                    "label": "MessageContentRefusalObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `refusal`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "refusal"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "refusal",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "refusal",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "nullable",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "attachments",
                            "type": "$$array",
                            "description": "A list of files attached to the message, and the tools they were added to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "file_id",
                                  "type": "string",
                                  "description": "The ID of the file to attach to the message.",
                                  "meta": []
                                },
                                {
                                  "name": "tools",
                                  "type": "$$array",
                                  "description": "The tools to add this file to.",
                                  "meta": [],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Code interpreter tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsCode",
                                          "canonical": "objects/AssistantToolsCode",
                                          "label": "AssistantToolsCode"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `code_interpreter`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "code_interpreter"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "code_interpreter",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "FileSearch tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                          "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                          "label": "AssistantToolsFileSearchTypeOnly"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `file_search`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "file_search"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "file_search",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": []
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "",
                    "type": "object",
                    "description": "Occurs when a [message](/docs/api-reference/messages/object) ends before it is completed.",
                    "meta": [],
                    "properties": [
                      {
                        "name": "event",
                        "type": "$$enum",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "enum-type",
                            "value": "string"
                          },
                          {
                            "name": "const",
                            "value": "thread.message.incomplete"
                          }
                        ],
                        "properties": [
                          {
                            "name": "thread.message.incomplete",
                            "type": "string",
                            "description": "",
                            "meta": []
                          }
                        ],
                        "ofProperty": {
                          "name": "",
                          "description": "",
                          "type": "string"
                        }
                      },
                      {
                        "name": "data",
                        "type": "object",
                        "description": "Represents a message within a [thread](/docs/api-reference/threads).",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ],
                        "symbolDef": {
                          "id": "#/components/schemas/MessageObject",
                          "canonical": "objects/MessageObject",
                          "label": "thread.message"
                        },
                        "properties": [
                          {
                            "name": "id",
                            "type": "string",
                            "description": "The identifier, which can be referenced in API endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "object",
                            "type": "$$enum",
                            "description": "The object type, which is always `thread.message`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              },
                              {
                                "name": "const",
                                "value": "thread.message"
                              }
                            ],
                            "properties": [
                              {
                                "name": "thread.message",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "created_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was created.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "thread_id",
                            "type": "string",
                            "description": "The [thread](/docs/api-reference/threads) ID that this message belongs to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "status",
                            "type": "$$enum",
                            "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "in_progress",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "incomplete",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "completed",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "incomplete_details",
                            "type": "object",
                            "description": "On an incomplete message, details about why the message is incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [
                              {
                                "name": "reason",
                                "type": "$$enum",
                                "description": "The reason the message is incomplete.",
                                "meta": [
                                  {
                                    "name": "required",
                                    "value": "true"
                                  },
                                  {
                                    "name": "enum-type",
                                    "value": "string"
                                  }
                                ],
                                "properties": [
                                  {
                                    "name": "content_filter",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "max_tokens",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_cancelled",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_expired",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  },
                                  {
                                    "name": "run_failed",
                                    "type": "string",
                                    "description": "",
                                    "meta": []
                                  }
                                ],
                                "ofProperty": {
                                  "name": "",
                                  "description": "",
                                  "type": "string"
                                }
                              }
                            ]
                          },
                          {
                            "name": "completed_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was completed.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "incomplete_at",
                            "type": "integer",
                            "description": "The Unix timestamp (in seconds) for when the message was marked as incomplete.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "role",
                            "type": "$$enum",
                            "description": "The entity that produced the message. One of `user` or `assistant`.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "enum-type",
                                "value": "string"
                              }
                            ],
                            "properties": [
                              {
                                "name": "user",
                                "type": "string",
                                "description": "",
                                "meta": []
                              },
                              {
                                "name": "assistant",
                                "type": "string",
                                "description": "",
                                "meta": []
                              }
                            ],
                            "ofProperty": {
                              "name": "",
                              "description": "",
                              "type": "string"
                            }
                          },
                          {
                            "name": "content",
                            "type": "$$array",
                            "description": "The content of the message in array of text and/or images.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "$$xor",
                              "properties": [
                                {
                                  "name": "Image file",
                                  "type": "object",
                                  "description": "References an image [File](/docs/api-reference/files) in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageFileObject",
                                    "canonical": "objects/MessageContentImageFileObject",
                                    "label": "MessageContentImageFileObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `image_file`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_file"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_file",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_file",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "file_id",
                                          "type": "string",
                                          "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Image URL",
                                  "type": "object",
                                  "description": "References an image URL in the content of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentImageUrlObject",
                                    "canonical": "objects/MessageContentImageUrlObject",
                                    "label": "MessageContentImageUrlObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "The type of the content part.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "image_url"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "image_url",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "image_url",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "url",
                                          "type": "string",
                                          "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "detail",
                                          "type": "$$enum",
                                          "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`",
                                          "meta": [
                                            {
                                              "name": "defaults",
                                              "value": "auto"
                                            },
                                            {
                                              "name": "enum-type",
                                              "value": "string"
                                            }
                                          ],
                                          "properties": [
                                            {
                                              "name": "auto",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "low",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            },
                                            {
                                              "name": "high",
                                              "type": "string",
                                              "description": "",
                                              "meta": []
                                            }
                                          ],
                                          "ofProperty": {
                                            "name": "",
                                            "description": "",
                                            "type": "string"
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Text",
                                  "type": "object",
                                  "description": "The text content that is part of a message.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentTextObject",
                                    "canonical": "objects/MessageContentTextObject",
                                    "label": "MessageContentTextObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `text`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "text"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "text",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "text",
                                      "type": "object",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "value",
                                          "type": "string",
                                          "description": "The data that makes up the text.",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ]
                                        },
                                        {
                                          "name": "annotations",
                                          "type": "$$array",
                                          "description": "",
                                          "meta": [
                                            {
                                              "name": "required",
                                              "value": "true"
                                            }
                                          ],
                                          "properties": [],
                                          "ofProperty": {
                                            "name": "",
                                            "type": "$$xor",
                                            "properties": [
                                              {
                                                "name": "File citation",
                                                "type": "object",
                                                "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFileCitationObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFileCitationObject",
                                                  "label": "MessageContentTextAnnotationsFileCitationObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_citation`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_citation"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_citation",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_citation",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the specific File the citation is from.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "name": "File path",
                                                "type": "object",
                                                "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.",
                                                "meta": [
                                                  {
                                                    "name": "required",
                                                    "value": "true"
                                                  }
                                                ],
                                                "symbolDef": {
                                                  "id": "#/components/schemas/MessageContentTextAnnotationsFilePathObject",
                                                  "canonical": "objects/MessageContentTextAnnotationsFilePathObject",
                                                  "label": "MessageContentTextAnnotationsFilePathObject"
                                                },
                                                "properties": [
                                                  {
                                                    "name": "type",
                                                    "type": "$$enum",
                                                    "description": "Always `file_path`.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "enum-type",
                                                        "value": "string"
                                                      },
                                                      {
                                                        "name": "const",
                                                        "value": "file_path"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_path",
                                                        "type": "string",
                                                        "description": "",
                                                        "meta": []
                                                      }
                                                    ],
                                                    "ofProperty": {
                                                      "name": "",
                                                      "description": "",
                                                      "type": "string"
                                                    }
                                                  },
                                                  {
                                                    "name": "text",
                                                    "type": "string",
                                                    "description": "The text in the message content that needs to be replaced.",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "file_path",
                                                    "type": "object",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      }
                                                    ],
                                                    "properties": [
                                                      {
                                                        "name": "file_id",
                                                        "type": "string",
                                                        "description": "The ID of the file that was generated.",
                                                        "meta": [
                                                          {
                                                            "name": "required",
                                                            "value": "true"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "start_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "name": "end_index",
                                                    "type": "integer",
                                                    "description": "",
                                                    "meta": [
                                                      {
                                                        "name": "required",
                                                        "value": "true"
                                                      },
                                                      {
                                                        "name": "minimum",
                                                        "value": 0
                                                      }
                                                    ]
                                                  }
                                                ]
                                              }
                                            ],
                                            "description": "",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name": "Refusal",
                                  "type": "object",
                                  "description": "The refusal content generated by the assistant.",
                                  "meta": [
                                    {
                                      "name": "required",
                                      "value": "true"
                                    }
                                  ],
                                  "symbolDef": {
                                    "id": "#/components/schemas/MessageContentRefusalObject",
                                    "canonical": "objects/MessageContentRefusalObject",
                                    "label": "MessageContentRefusalObject"
                                  },
                                  "properties": [
                                    {
                                      "name": "type",
                                      "type": "$$enum",
                                      "description": "Always `refusal`.",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "enum-type",
                                          "value": "string"
                                        },
                                        {
                                          "name": "const",
                                          "value": "refusal"
                                        }
                                      ],
                                      "properties": [
                                        {
                                          "name": "refusal",
                                          "type": "string",
                                          "description": "",
                                          "meta": []
                                        }
                                      ],
                                      "ofProperty": {
                                        "name": "",
                                        "description": "",
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "name": "refusal",
                                      "type": "string",
                                      "description": "",
                                      "meta": [
                                        {
                                          "name": "required",
                                          "value": "true"
                                        },
                                        {
                                          "name": "nullable",
                                          "value": "true"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "assistant_id",
                            "type": "string",
                            "description": "If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "run_id",
                            "type": "string",
                            "description": "The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ]
                          },
                          {
                            "name": "attachments",
                            "type": "$$array",
                            "description": "A list of files attached to the message, and the tools they were added to.",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "properties": [],
                            "ofProperty": {
                              "name": "",
                              "type": "object",
                              "properties": [
                                {
                                  "name": "file_id",
                                  "type": "string",
                                  "description": "The ID of the file to attach to the message.",
                                  "meta": []
                                },
                                {
                                  "name": "tools",
                                  "type": "$$array",
                                  "description": "The tools to add this file to.",
                                  "meta": [],
                                  "properties": [],
                                  "ofProperty": {
                                    "name": "",
                                    "type": "$$xor",
                                    "properties": [
                                      {
                                        "name": "Code interpreter tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [
                                          {
                                            "name": "required",
                                            "value": "true"
                                          }
                                        ],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsCode",
                                          "canonical": "objects/AssistantToolsCode",
                                          "label": "AssistantToolsCode"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `code_interpreter`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "code_interpreter"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "code_interpreter",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "name": "FileSearch tool",
                                        "type": "object",
                                        "description": "",
                                        "meta": [],
                                        "symbolDef": {
                                          "id": "#/components/schemas/AssistantToolsFileSearchTypeOnly",
                                          "canonical": "objects/AssistantToolsFileSearchTypeOnly",
                                          "label": "AssistantToolsFileSearchTypeOnly"
                                        },
                                        "properties": [
                                          {
                                            "name": "type",
                                            "type": "$$enum",
                                            "description": "The type of tool being defined: `file_search`",
                                            "meta": [
                                              {
                                                "name": "required",
                                                "value": "true"
                                              },
                                              {
                                                "name": "enum-type",
                                                "value": "string"
                                              },
                                              {
                                                "name": "const",
                                                "value": "file_search"
                                              }
                                            ],
                                            "properties": [
                                              {
                                                "name": "file_search",
                                                "type": "string",
                                                "description": "",
                                                "meta": []
                                              }
                                            ],
                                            "ofProperty": {
                                              "name": "",
                                              "description": "",
                                              "type": "string"
                                            }
                                          }
                                        ]
                                      }
                                    ],
                                    "description": "",
                                    "meta": []
                                  }
                                }
                              ],
                              "description": "",
                              "meta": [
                                {
                                  "name": "required",
                                  "value": "true"
                                }
                              ]
                            }
                          },
                          {
                            "name": "metadata",
                            "type": "object",
                            "description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard. \n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n",
                            "meta": [
                              {
                                "name": "required",
                                "value": "true"
                              },
                              {
                                "name": "nullable",
                                "value": "true"
                              }
                            ],
                            "symbolDef": {
                              "id": "#/components/schemas/Metadata",
                              "canonical": "objects/Metadata",
                              "label": "Metadata"
                            }
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/MessageStreamEvent",
                  "canonical": "objects/MessageStreamEvent",
                  "label": "MessageStreamEvent"
                }
              },
              {
                "name": "",
                "type": "object",
                "description": "Occurs when an [error](/docs/guides/error-codes#api-errors) occurs. This can happen due to an internal server error or a timeout.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ErrorEvent",
                  "canonical": "objects/ErrorEvent",
                  "label": "ErrorEvent"
                },
                "properties": [
                  {
                    "name": "event",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "error"
                      }
                    ],
                    "properties": [
                      {
                        "name": "error",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "data",
                    "type": "object",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "symbolDef": {
                      "id": "#/components/schemas/Error",
                      "canonical": "objects/Error",
                      "label": "Error"
                    },
                    "properties": [
                      {
                        "name": "code",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "message",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "param",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      },
                      {
                        "name": "type",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "nullable",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "name": "",
                "type": "object",
                "description": "Occurs when a stream ends.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/DoneEvent",
                  "canonical": "objects/DoneEvent",
                  "label": "DoneEvent"
                },
                "properties": [
                  {
                    "name": "event",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "done"
                      }
                    ],
                    "properties": [
                      {
                        "name": "done",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "data",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "[DONE]"
                      }
                    ],
                    "properties": [
                      {
                        "name": "[DONE]",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              }
            ],
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/AssistantStreamEvent",
              "canonical": "objects/AssistantStreamEvent",
              "label": "AssistantStreamEvent"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/AssistantStreamEvent",
          "canonical": "objects/AssistantStreamEvent",
          "label": "AssistantStreamEvent"
        }
      }
    ],
    "examples": {
      "groups": []
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "AssistantStreamEvent",
      "group": [
        "Assistants",
        "Streaming"
      ]
    }
  },
  {
    "title": "List all organization and project API keys.",
    "canonical": "admin-api-keys/list",
    "description": "Retrieve a paginated list of organization admin API keys.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/admin_api_keys",
      "group": [
        "Administration",
        "Admin API Keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/admin_api_keys",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/admin_api_keys?after=key_abc&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"organization.admin_api_key\",\n      \"id\": \"key_abc\",\n      \"name\": \"Main Admin Key\",\n      \"redacted_value\": \"sk-admin...def\",\n      \"created_at\": 1711471533,\n      \"last_used_at\": 1711471534,\n      \"owner\": {\n        \"type\": \"service_account\",\n        \"object\": \"organization.service_account\",\n        \"id\": \"sa_456\",\n        \"name\": \"My Service Account\",\n        \"created_at\": 1711471533,\n        \"role\": \"member\"\n      }\n    }\n  ],\n  \"first_id\": \"key_abc\",\n  \"last_id\": \"key_abc\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "after",
            "type": "string",
            "description": "",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "defaults",
                "value": "asc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of admin and project API key objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create admin API key",
    "canonical": "admin-api-keys/create",
    "description": "Create a new admin-level API key for the organization.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/admin_api_keys",
      "group": [
        "Administration",
        "Admin API Keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/admin_api_keys",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/admin_api_keys \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"name\": \"New Admin Key\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.admin_api_key\",\n  \"id\": \"key_xyz\",\n  \"name\": \"New Admin Key\",\n  \"redacted_value\": \"sk-admin...xyz\",\n  \"created_at\": 1711471533,\n  \"last_used_at\": 1711471534,\n  \"owner\": {\n    \"type\": \"user\",\n    \"object\": \"organization.user\",\n    \"id\": \"user_123\",\n    \"name\": \"John Doe\",\n    \"created_at\": 1711471533,\n    \"role\": \"owner\"\n  },\n  \"value\": \"sk-admin-1234abcd\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "New Admin Key"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [AdminApiKey](/docs/api-reference/admin-api-keys/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve admin API key",
    "canonical": "admin-api-keys/listget",
    "description": "Get details for a specific organization API key by its ID.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/admin_api_keys/{key_id}",
      "group": [
        "Administration",
        "Admin API Keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/admin_api_keys/{key_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/admin_api_keys/key_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.admin_api_key\",\n  \"id\": \"key_abc\",\n  \"name\": \"Main Admin Key\",\n  \"redacted_value\": \"sk-admin...xyz\",\n  \"created_at\": 1711471533,\n  \"last_used_at\": 1711471534,\n  \"owner\": {\n    \"type\": \"user\",\n    \"object\": \"organization.user\",\n    \"id\": \"user_123\",\n    \"name\": \"John Doe\",\n    \"created_at\": 1711471533,\n    \"role\": \"owner\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "key_id",
            "type": "string",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The requested [AdminApiKey](/docs/api-reference/admin-api-keys/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete admin API key",
    "canonical": "admin-api-keys/delete",
    "description": "Delete the specified admin API key.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/admin_api_keys/{key_id}",
      "group": [
        "Administration",
        "Admin API Keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/admin_api_keys/{key_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/admin_api_keys/key_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"key_abc\",\n  \"object\": \"organization.admin_api_key.deleted\",\n  \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "key_id",
            "type": "string",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "A confirmation object indicating the key was deleted.",
        "properties": []
      }
    ]
  },
  {
    "title": "The admin API key object",
    "description": "Represents an individual Admin API key in an org.",
    "canonical": "admin-api-keys/object",
    "definitions": [
      {
        "title": "AdminApiKey",
        "properties": [
          {
            "name": "object",
            "type": "string",
            "description": "The object type, which is always `organization.admin_api_key`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "organization.admin_api_key"
              }
            ]
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "key_abc"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the API key",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "Administration Key"
              }
            ]
          },
          {
            "name": "redacted_value",
            "type": "string",
            "description": "The redacted value of the API key",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": "sk-admin...def"
              }
            ]
          },
          {
            "name": "value",
            "type": "string",
            "description": "The value of the API key. Only shown on create.",
            "meta": [
              {
                "name": "example",
                "value": "sk-admin-1234abcd"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the API key was created",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "example",
                "value": 1711471533
              }
            ]
          },
          {
            "name": "last_used_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the API key was last used",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "nullable",
                "value": "true"
              },
              {
                "name": "example",
                "value": 1711471534
              }
            ]
          },
          {
            "name": "owner",
            "type": "object",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "string",
                "description": "Always `user`",
                "meta": [
                  {
                    "name": "example",
                    "value": "user"
                  }
                ]
              },
              {
                "name": "object",
                "type": "string",
                "description": "The object type, which is always organization.user",
                "meta": [
                  {
                    "name": "example",
                    "value": "organization.user"
                  }
                ]
              },
              {
                "name": "id",
                "type": "string",
                "description": "The identifier, which can be referenced in API endpoints",
                "meta": [
                  {
                    "name": "example",
                    "value": "sa_456"
                  }
                ]
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the user",
                "meta": [
                  {
                    "name": "example",
                    "value": "My Service Account"
                  }
                ]
              },
              {
                "name": "created_at",
                "type": "integer",
                "description": "The Unix timestamp (in seconds) of when the user was created",
                "meta": [
                  {
                    "name": "example",
                    "value": 1711471533
                  }
                ]
              },
              {
                "name": "role",
                "type": "string",
                "description": "Always `owner`",
                "meta": [
                  {
                    "name": "example",
                    "value": "owner"
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/AdminApiKey",
          "canonical": "objects/AdminApiKey",
          "label": "AdminApiKey"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.admin_api_key\",\n  \"id\": \"key_abc\",\n  \"name\": \"Main Admin Key\",\n  \"redacted_value\": \"sk-admin...xyz\",\n  \"created_at\": 1711471533,\n  \"last_used_at\": 1711471534,\n  \"owner\": {\n    \"type\": \"user\",\n    \"object\": \"organization.user\",\n    \"id\": \"user_123\",\n    \"name\": \"John Doe\",\n    \"created_at\": 1711471533,\n    \"role\": \"owner\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "AdminApiKey",
      "group": [
        "Administration",
        "Admin API Keys"
      ]
    }
  },
  {
    "title": "List invites",
    "canonical": "invite/list",
    "description": "Returns a list of invites in the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/invites",
      "group": [
        "Administration",
        "Invites"
      ],
      "fullPath": "https://api.openai.com/v1/organization/invites",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/invites?after=invite-abc&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"organization.invite\",\n      \"id\": \"invite-abc\",\n      \"email\": \"user@example.com\",\n      \"role\": \"owner\",\n      \"status\": \"accepted\",\n      \"invited_at\": 1711471533,\n      \"expires_at\": 1711471533,\n      \"accepted_at\": 1711471533\n    }\n  ],\n  \"first_id\": \"invite-abc\",\n  \"last_id\": \"invite-abc\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [Invite](/docs/api-reference/invite/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create invite",
    "canonical": "invite/create",
    "description": "Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/invites",
      "group": [
        "Administration",
        "Invites"
      ],
      "fullPath": "https://api.openai.com/v1/organization/invites",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/invites \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"email\": \"anotheruser@example.com\",\n      \"role\": \"reader\",\n      \"projects\": [\n        {\n          \"id\": \"project-xyz\",\n          \"role\": \"member\"\n        },\n        {\n          \"id\": \"project-abc\",\n          \"role\": \"owner\"\n        }\n      ]\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.invite\",\n  \"id\": \"invite-def\",\n  \"email\": \"anotheruser@example.com\",\n  \"role\": \"reader\",\n  \"status\": \"pending\",\n  \"invited_at\": 1711471533,\n  \"expires_at\": 1711471533,\n  \"accepted_at\": null,\n  \"projects\": [\n    {\n      \"id\": \"project-xyz\",\n      \"role\": \"member\"\n    },\n    {\n      \"id\": \"project-abc\",\n      \"role\": \"owner\"\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "email",
                "type": "string",
                "description": "Send an email to this address",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "`owner` or `reader`",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "reader",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "owner",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "projects",
                "type": "$$array",
                "description": "An array of projects to which membership is granted at the same time the org invite is accepted. If omitted, the user will be invited to the default project for compatibility with legacy behavior.",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "Project's public ID",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ]
                    },
                    {
                      "name": "role",
                      "type": "$$enum",
                      "description": "Project membership role",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        },
                        {
                          "name": "enum-type",
                          "value": "string"
                        }
                      ],
                      "properties": [
                        {
                          "name": "member",
                          "type": "string",
                          "description": "",
                          "meta": []
                        },
                        {
                          "name": "owner",
                          "type": "string",
                          "description": "",
                          "meta": []
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "description": "",
                        "type": "string"
                      }
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/InviteRequest",
              "canonical": "objects/InviteRequest",
              "label": "InviteRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [Invite](/docs/api-reference/invite/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve invite",
    "canonical": "invite/retrieve",
    "description": "Retrieves an invite.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/invites/{invite_id}",
      "group": [
        "Administration",
        "Invites"
      ],
      "fullPath": "https://api.openai.com/v1/organization/invites/{invite_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/invites/invite-abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.invite\",\n    \"id\": \"invite-abc\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"status\": \"accepted\",\n    \"invited_at\": 1711471533,\n    \"expires_at\": 1711471533,\n    \"accepted_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "invite_id",
            "type": "string",
            "description": "The ID of the invite to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [Invite](/docs/api-reference/invite/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete invite",
    "canonical": "invite/delete",
    "description": "Delete an invite. If the invite has already been accepted, it cannot be deleted.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/invites/{invite_id}",
      "group": [
        "Administration",
        "Invites"
      ],
      "fullPath": "https://api.openai.com/v1/organization/invites/{invite_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/invites/invite-abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.invite.deleted\",\n    \"id\": \"invite-abc\",\n    \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "invite_id",
            "type": "string",
            "description": "The ID of the invite to delete.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Confirmation that the invite has been deleted",
        "properties": []
      }
    ]
  },
  {
    "title": "The invite object",
    "description": "Represents an individual `invite` to the organization.",
    "canonical": "invite/object",
    "definitions": [
      {
        "title": "Invite",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `organization.invite`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.invite"
              }
            ],
            "properties": [
              {
                "name": "organization.invite",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "email",
            "type": "string",
            "description": "The email address of the individual to whom the invite was sent",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "role",
            "type": "$$enum",
            "description": "`owner` or `reader`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "owner",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "reader",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "`accepted`,`expired`, or `pending`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "accepted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "expired",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "pending",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "invited_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the invite was sent.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "expires_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the invite expires.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "accepted_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the invite was accepted.",
            "meta": []
          },
          {
            "name": "projects",
            "type": "$$array",
            "description": "The projects that were granted membership upon acceptance of the invite.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "id",
                  "type": "string",
                  "description": "Project's public ID",
                  "meta": []
                },
                {
                  "name": "role",
                  "type": "$$enum",
                  "description": "Project membership role",
                  "meta": [
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "member",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "owner",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                }
              ],
              "description": "",
              "meta": []
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Invite",
          "canonical": "objects/Invite",
          "label": "organization.invite"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.invite\",\n  \"id\": \"invite-abc\",\n  \"email\": \"user@example.com\",\n  \"role\": \"owner\",\n  \"status\": \"accepted\",\n  \"invited_at\": 1711471533,\n  \"expires_at\": 1711471533,\n  \"accepted_at\": 1711471533,\n  \"projects\": [\n    {\n      \"id\": \"project-xyz\",\n      \"role\": \"member\"\n    }\n  ]\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Invite",
      "group": [
        "Administration",
        "Invites"
      ]
    }
  },
  {
    "title": "List users",
    "canonical": "users/list",
    "description": "Lists all of the users in the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/users",
      "group": [
        "Administration",
        "Users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/users",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/users?after=user_abc&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"object\": \"organization.user\",\n            \"id\": \"user_abc\",\n            \"name\": \"First Last\",\n            \"email\": \"user@example.com\",\n            \"role\": \"owner\",\n            \"added_at\": 1711471533\n        }\n    ],\n    \"first_id\": \"user-abc\",\n    \"last_id\": \"user-xyz\",\n    \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "emails",
            "type": "$$array",
            "description": "Filter by the email address of users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [User](/docs/api-reference/users/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify user",
    "canonical": "users/modify",
    "description": "Modifies a user's role in the organization.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/users/{user_id}",
      "group": [
        "Administration",
        "Users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/users/{user_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/users/user_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"role\": \"owner\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.user\",\n    \"id\": \"user_abc\",\n    \"name\": \"First Last\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "user_id",
            "type": "string",
            "description": "The ID of the user.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "role",
                "type": "$$enum",
                "description": "`owner` or `reader`",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "owner",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "reader",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/UserRoleUpdateRequest",
              "canonical": "objects/UserRoleUpdateRequest",
              "label": "UserRoleUpdateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The updated [User](/docs/api-reference/users/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve user",
    "canonical": "users/retrieve",
    "description": "Retrieves a user by their identifier.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/users/{user_id}",
      "group": [
        "Administration",
        "Users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/users/{user_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/users/user_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.user\",\n    \"id\": \"user_abc\",\n    \"name\": \"First Last\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "user_id",
            "type": "string",
            "description": "The ID of the user.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [User](/docs/api-reference/users/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete user",
    "canonical": "users/delete",
    "description": "Deletes a user from the organization.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/users/{user_id}",
      "group": [
        "Administration",
        "Users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/users/{user_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/users/user_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.user.deleted\",\n    \"id\": \"user_abc\",\n    \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "user_id",
            "type": "string",
            "description": "The ID of the user.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Confirmation of the deleted user",
        "properties": []
      }
    ]
  },
  {
    "title": "The user object",
    "description": "Represents an individual `user` within an organization.",
    "canonical": "users/object",
    "definitions": [
      {
        "title": "User",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `organization.user`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.user"
              }
            ],
            "properties": [
              {
                "name": "organization.user",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the user",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "email",
            "type": "string",
            "description": "The email address of the user",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "role",
            "type": "$$enum",
            "description": "`owner` or `reader`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "owner",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "reader",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "added_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the user was added.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/User",
          "canonical": "objects/User",
          "label": "organization.user"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.user\",\n    \"id\": \"user_abc\",\n    \"name\": \"First Last\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "User",
      "group": [
        "Administration",
        "Users"
      ]
    }
  },
  {
    "title": "List projects",
    "canonical": "projects/list",
    "description": "Returns a list of projects.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects",
      "group": [
        "Administration",
        "Projects"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects?after=proj_abc&limit=20&include_archived=false \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"id\": \"proj_abc\",\n            \"object\": \"organization.project\",\n            \"name\": \"Project example\",\n            \"created_at\": 1711471533,\n            \"archived_at\": null,\n            \"status\": \"active\"\n        }\n    ],\n    \"first_id\": \"proj-abc\",\n    \"last_id\": \"proj-xyz\",\n    \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "include_archived",
            "type": "boolean",
            "description": "If `true` returns all projects including those that have been `archived`. Archived projects are not included by default.",
            "meta": [
              {
                "name": "defaults",
                "value": false
              }
            ]
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [Project](/docs/api-reference/projects/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create project",
    "canonical": "projects/create",
    "description": "Create a new project in the organization. Projects can be created and archived, but cannot be deleted.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects",
      "group": [
        "Administration",
        "Projects"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"name\": \"Project ABC\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"id\": \"proj_abc\",\n    \"object\": \"organization.project\",\n    \"name\": \"Project ABC\",\n    \"created_at\": 1711471533,\n    \"archived_at\": null,\n    \"status\": \"active\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The friendly name of the project, this name appears in reports.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ProjectCreateRequest",
              "canonical": "objects/ProjectCreateRequest",
              "label": "ProjectCreateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [Project](/docs/api-reference/projects/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve project",
    "canonical": "projects/retrieve",
    "description": "Retrieves a project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}",
      "group": [
        "Administration",
        "Projects"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"id\": \"proj_abc\",\n    \"object\": \"organization.project\",\n    \"name\": \"Project example\",\n    \"created_at\": 1711471533,\n    \"archived_at\": null,\n    \"status\": \"active\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [Project](/docs/api-reference/projects/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify project",
    "canonical": "projects/modify",
    "description": "Modifies a project in the organization.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}",
      "group": [
        "Administration",
        "Projects"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"name\": \"Project DEF\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The updated name of the project, this name appears in reports.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ProjectUpdateRequest",
              "canonical": "objects/ProjectUpdateRequest",
              "label": "ProjectUpdateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The updated [Project](/docs/api-reference/projects/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Archive project",
    "canonical": "projects/archive",
    "description": "Archives a project in the organization. Archived projects cannot be used or updated.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/archive",
      "group": [
        "Administration",
        "Projects"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/archive",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/archive \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"id\": \"proj_abc\",\n    \"object\": \"organization.project\",\n    \"name\": \"Project DEF\",\n    \"created_at\": 1711471533,\n    \"archived_at\": 1711471533,\n    \"status\": \"archived\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The archived [Project](/docs/api-reference/projects/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "The project object",
    "description": "Represents an individual project.",
    "canonical": "projects/object",
    "definitions": [
      {
        "title": "Project",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `organization.project`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.project"
              }
            ],
            "properties": [
              {
                "name": "organization.project",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the project. This appears in reporting.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the project was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "archived_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the project was archived or `null`.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "status",
            "type": "$$enum",
            "description": "`active` or `archived`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "active",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "archived",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Project",
          "canonical": "objects/Project",
          "label": "organization.project"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"id\": \"proj_abc\",\n    \"object\": \"organization.project\",\n    \"name\": \"Project example\",\n    \"created_at\": 1711471533,\n    \"archived_at\": null,\n    \"status\": \"active\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Project",
      "group": [
        "Administration",
        "Projects"
      ]
    }
  },
  {
    "title": "List project users",
    "canonical": "project-users/list",
    "description": "Returns a list of users in the project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/users",
      "group": [
        "Administration",
        "Project users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/users",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/users?after=user_abc&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"object\": \"organization.project.user\",\n            \"id\": \"user_abc\",\n            \"name\": \"First Last\",\n            \"email\": \"user@example.com\",\n            \"role\": \"owner\",\n            \"added_at\": 1711471533\n        }\n    ],\n    \"first_id\": \"user-abc\",\n    \"last_id\": \"user-xyz\",\n    \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [ProjectUser](/docs/api-reference/project-users/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create project user",
    "canonical": "project-users/creeate",
    "description": "Adds a user to the project. Users must already be members of the organization to be added to a project.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/users",
      "group": [
        "Administration",
        "Project users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/users",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/users \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"user_id\": \"user_abc\",\n      \"role\": \"member\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.user\",\n    \"id\": \"user_abc\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "user_id",
                "type": "string",
                "description": "The ID of the user.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "role",
                "type": "$$enum",
                "description": "`owner` or `member`",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "owner",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "member",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ProjectUserCreateRequest",
              "canonical": "objects/ProjectUserCreateRequest",
              "label": "ProjectUserCreateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [ProjectUser](/docs/api-reference/project-users/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve project user",
    "canonical": "project-users/retrieve",
    "description": "Retrieves a user in the project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/users/{user_id}",
      "group": [
        "Administration",
        "Project users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/users/{user_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/users/user_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.user\",\n    \"id\": \"user_abc\",\n    \"name\": \"First Last\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "The ID of the user.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [ProjectUser](/docs/api-reference/project-users/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify project user",
    "canonical": "project-users/modify",
    "description": "Modifies a user's role in the project.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/users/{user_id}",
      "group": [
        "Administration",
        "Project users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/users/{user_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/users/user_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"role\": \"owner\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.user\",\n    \"id\": \"user_abc\",\n    \"name\": \"First Last\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "The ID of the user.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "role",
                "type": "$$enum",
                "description": "`owner` or `member`",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "owner",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "member",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ProjectUserUpdateRequest",
              "canonical": "objects/ProjectUserUpdateRequest",
              "label": "ProjectUserUpdateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The updated [ProjectUser](/docs/api-reference/project-users/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete project user",
    "canonical": "project-users/delete",
    "description": "Deletes a user from the project.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/projects/{project_id}/users/{user_id}",
      "group": [
        "Administration",
        "Project users"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/users/{user_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/projects/proj_abc/users/user_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.user.deleted\",\n    \"id\": \"user_abc\",\n    \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "The ID of the user.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Confirmation that project has been deleted or an error in case of an archived project, which has no users",
        "properties": []
      }
    ]
  },
  {
    "title": "The project user object",
    "description": "Represents an individual user in a project.",
    "canonical": "project-users/object",
    "definitions": [
      {
        "title": "ProjectUser",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `organization.project.user`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.project.user"
              }
            ],
            "properties": [
              {
                "name": "organization.project.user",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the user",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "email",
            "type": "string",
            "description": "The email address of the user",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "role",
            "type": "$$enum",
            "description": "`owner` or `member`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "owner",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "member",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "added_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the project was added.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ProjectUser",
          "canonical": "objects/ProjectUser",
          "label": "organization.project.user"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.user\",\n    \"id\": \"user_abc\",\n    \"name\": \"First Last\",\n    \"email\": \"user@example.com\",\n    \"role\": \"owner\",\n    \"added_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ProjectUser",
      "group": [
        "Administration",
        "Project users"
      ]
    }
  },
  {
    "title": "List project service accounts",
    "canonical": "project-service-accounts/list",
    "description": "Returns a list of service accounts in the project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/service_accounts",
      "group": [
        "Administration",
        "Project service accounts"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/service_accounts",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/service_accounts?after=custom_id&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"object\": \"organization.project.service_account\",\n            \"id\": \"svc_acct_abc\",\n            \"name\": \"Service Account\",\n            \"role\": \"owner\",\n            \"created_at\": 1711471533\n        }\n    ],\n    \"first_id\": \"svc_acct_abc\",\n    \"last_id\": \"svc_acct_xyz\",\n    \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [ProjectServiceAccount](/docs/api-reference/project-service-accounts/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Create project service account",
    "canonical": "project-service-accounts/create",
    "description": "Creates a new service account in the project. This also returns an unredacted API key for the service account.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/service_accounts",
      "group": [
        "Administration",
        "Project service accounts"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/service_accounts",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/service_accounts \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"name\": \"Production App\"\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.service_account\",\n    \"id\": \"svc_acct_abc\",\n    \"name\": \"Production App\",\n    \"role\": \"member\",\n    \"created_at\": 1711471533,\n    \"api_key\": {\n        \"object\": \"organization.project.service_account.api_key\",\n        \"value\": \"sk-abcdefghijklmnop123\",\n        \"name\": \"Secret Key\",\n        \"created_at\": 1711471533,\n        \"id\": \"key_abc\"\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The name of the service account being created.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ProjectServiceAccountCreateRequest",
              "canonical": "objects/ProjectServiceAccountCreateRequest",
              "label": "ProjectServiceAccountCreateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The created [ProjectServiceAccount](/docs/api-reference/project-service-accounts/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve project service account",
    "canonical": "project-service-accounts/retrieve",
    "description": "Retrieves a service account in the project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/service_accounts/{service_account_id}",
      "group": [
        "Administration",
        "Project service accounts"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/service_accounts/svc_acct_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.service_account\",\n    \"id\": \"svc_acct_abc\",\n    \"name\": \"Service Account\",\n    \"role\": \"owner\",\n    \"created_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "service_account_id",
            "type": "string",
            "description": "The ID of the service account.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [ProjectServiceAccount](/docs/api-reference/project-service-accounts/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete project service account",
    "canonical": "project-service-accounts/delete",
    "description": "Deletes a service account from the project.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/projects/{project_id}/service_accounts/{service_account_id}",
      "group": [
        "Administration",
        "Project service accounts"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/projects/proj_abc/service_accounts/svc_acct_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.service_account.deleted\",\n    \"id\": \"svc_acct_abc\",\n    \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "service_account_id",
            "type": "string",
            "description": "The ID of the service account.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Confirmation of service account being deleted, or an error in case of an archived project, which has no service accounts",
        "properties": []
      }
    ]
  },
  {
    "title": "The project service account object",
    "description": "Represents an individual service account in a project.",
    "canonical": "project-service-accounts/object",
    "definitions": [
      {
        "title": "ProjectServiceAccount",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `organization.project.service_account`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.project.service_account"
              }
            ],
            "properties": [
              {
                "name": "organization.project.service_account",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the service account",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "role",
            "type": "$$enum",
            "description": "`owner` or `member`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "owner",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "member",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the service account was created",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ProjectServiceAccount",
          "canonical": "objects/ProjectServiceAccount",
          "label": "organization.project.service_account"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.service_account\",\n    \"id\": \"svc_acct_abc\",\n    \"name\": \"Service Account\",\n    \"role\": \"owner\",\n    \"created_at\": 1711471533\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ProjectServiceAccount",
      "group": [
        "Administration",
        "Project service accounts"
      ]
    }
  },
  {
    "title": "List project API keys",
    "canonical": "project-api-keys/list",
    "description": "Returns a list of API keys in the project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/api_keys",
      "group": [
        "Administration",
        "Project API keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/api_keys",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/api_keys?after=key_abc&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"object\": \"organization.project.api_key\",\n            \"redacted_value\": \"sk-abc...def\",\n            \"name\": \"My API Key\",\n            \"created_at\": 1711471533,\n            \"last_used_at\": 1711471534,\n            \"id\": \"key_abc\",\n            \"owner\": {\n                \"type\": \"user\",\n                \"user\": {\n                    \"object\": \"organization.project.user\",\n                    \"id\": \"user_abc\",\n                    \"name\": \"First Last\",\n                    \"email\": \"user@example.com\",\n                    \"role\": \"owner\",\n                    \"added_at\": 1711471533\n                }\n            }\n        }\n    ],\n    \"first_id\": \"key_abc\",\n    \"last_id\": \"key_xyz\",\n    \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [ProjectApiKey](/docs/api-reference/project-api-keys/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Retrieve project API key",
    "canonical": "project-api-keys/retrieve",
    "description": "Retrieves an API key in the project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/api_keys/{key_id}",
      "group": [
        "Administration",
        "Project API keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/api_keys/{key_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/api_keys/key_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.api_key\",\n    \"redacted_value\": \"sk-abc...def\",\n    \"name\": \"My API Key\",\n    \"created_at\": 1711471533,\n    \"last_used_at\": 1711471534,\n    \"id\": \"key_abc\",\n    \"owner\": {\n        \"type\": \"user\",\n        \"user\": {\n            \"object\": \"organization.project.user\",\n            \"id\": \"user_abc\",\n            \"name\": \"First Last\",\n            \"email\": \"user@example.com\",\n            \"role\": \"owner\",\n            \"added_at\": 1711471533\n        }\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "key_id",
            "type": "string",
            "description": "The ID of the API key.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "The [ProjectApiKey](/docs/api-reference/project-api-keys/object) object matching the specified ID.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete project API key",
    "canonical": "project-api-keys/delete",
    "description": "Deletes an API key from the project.",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/projects/{project_id}/api_keys/{key_id}",
      "group": [
        "Administration",
        "Project API keys"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/api_keys/{key_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/projects/proj_abc/api_keys/key_abc \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.api_key.deleted\",\n    \"id\": \"key_abc\",\n    \"deleted\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "key_id",
            "type": "string",
            "description": "The ID of the API key.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Response",
        "description": "Confirmation of the key's deletion or an error if the key belonged to a service account",
        "properties": []
      }
    ]
  },
  {
    "title": "The project API key object",
    "description": "Represents an individual API key in a project.",
    "canonical": "project-api-keys/object",
    "definitions": [
      {
        "title": "ProjectApiKey",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `organization.project.api_key`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.project.api_key"
              }
            ],
            "properties": [
              {
                "name": "organization.project.api_key",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "redacted_value",
            "type": "string",
            "description": "The redacted value of the API key",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the API key",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the API key was created",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "last_used_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the API key was last used.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "owner",
            "type": "object",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "`user` or `service_account`",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "user",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "service_account",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "user",
                "type": "object",
                "description": "Represents an individual user in a project.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ProjectUser",
                  "canonical": "objects/ProjectUser",
                  "label": "organization.project.user"
                },
                "properties": [
                  {
                    "name": "object",
                    "type": "$$enum",
                    "description": "The object type, which is always `organization.project.user`",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "organization.project.user"
                      }
                    ],
                    "properties": [
                      {
                        "name": "organization.project.user",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The identifier, which can be referenced in API endpoints",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The name of the user",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "email",
                    "type": "string",
                    "description": "The email address of the user",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "role",
                    "type": "$$enum",
                    "description": "`owner` or `member`",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "owner",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "member",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "added_at",
                    "type": "integer",
                    "description": "The Unix timestamp (in seconds) of when the project was added.",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "service_account",
                "type": "object",
                "description": "Represents an individual service account in a project.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/ProjectServiceAccount",
                  "canonical": "objects/ProjectServiceAccount",
                  "label": "organization.project.service_account"
                },
                "properties": [
                  {
                    "name": "object",
                    "type": "$$enum",
                    "description": "The object type, which is always `organization.project.service_account`",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      },
                      {
                        "name": "const",
                        "value": "organization.project.service_account"
                      }
                    ],
                    "properties": [
                      {
                        "name": "organization.project.service_account",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The identifier, which can be referenced in API endpoints",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The name of the service account",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "role",
                    "type": "$$enum",
                    "description": "`owner` or `member`",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "owner",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "member",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "created_at",
                    "type": "integer",
                    "description": "The Unix timestamp (in seconds) of when the service account was created",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ProjectApiKey",
          "canonical": "objects/ProjectApiKey",
          "label": "organization.project.api_key"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.project.api_key\",\n    \"redacted_value\": \"sk-abc...def\",\n    \"name\": \"My API Key\",\n    \"created_at\": 1711471533,\n    \"last_used_at\": 1711471534,\n    \"id\": \"key_abc\",\n    \"owner\": {\n        \"type\": \"user\",\n        \"user\": {\n            \"object\": \"organization.project.user\",\n            \"id\": \"user_abc\",\n            \"name\": \"First Last\",\n            \"email\": \"user@example.com\",\n            \"role\": \"owner\",\n            \"created_at\": 1711471533\n        }\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ProjectApiKey",
      "group": [
        "Administration",
        "Project API keys"
      ]
    }
  },
  {
    "title": "List project rate limits",
    "canonical": "project-rate-limits/list",
    "description": "Returns the rate limits per model for a project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/rate_limits",
      "group": [
        "Administration",
        "Project rate limits"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/rate_limits",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/rate_limits?after=rl_xxx&limit=20 \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n          \"object\": \"project.rate_limit\",\n          \"id\": \"rl-ada\",\n          \"model\": \"ada\",\n          \"max_requests_per_1_minute\": 600,\n          \"max_tokens_per_1_minute\": 150000,\n          \"max_images_per_1_minute\": 10\n        }\n    ],\n    \"first_id\": \"rl-ada\",\n    \"last_id\": \"rl-ada\",\n    \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. The default is 100.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 100
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, beginning with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [ProjectRateLimit](/docs/api-reference/project-rate-limits/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify project rate limit",
    "canonical": "project-rate-limits/update",
    "description": "Updates a project rate limit.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/rate_limits/{rate_limit_id}",
      "group": [
        "Administration",
        "Project rate limits"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/rate_limits/{rate_limit_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/rate_limits/rl_xxx \\\n  -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n      \"max_requests_per_1_minute\": 500\n  }'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"project.rate_limit\",\n    \"id\": \"rl-ada\",\n    \"model\": \"ada\",\n    \"max_requests_per_1_minute\": 600,\n    \"max_tokens_per_1_minute\": 150000,\n    \"max_images_per_1_minute\": 10\n  }\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "project_id",
            "type": "string",
            "description": "The ID of the project.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "rate_limit_id",
            "type": "string",
            "description": "The ID of the rate limit.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "max_requests_per_1_minute",
                "type": "integer",
                "description": "The maximum requests per minute.",
                "meta": []
              },
              {
                "name": "max_tokens_per_1_minute",
                "type": "integer",
                "description": "The maximum tokens per minute.",
                "meta": []
              },
              {
                "name": "max_images_per_1_minute",
                "type": "integer",
                "description": "The maximum images per minute. Only relevant for certain models.",
                "meta": []
              },
              {
                "name": "max_audio_megabytes_per_1_minute",
                "type": "integer",
                "description": "The maximum audio megabytes per minute. Only relevant for certain models.",
                "meta": []
              },
              {
                "name": "max_requests_per_1_day",
                "type": "integer",
                "description": "The maximum requests per day. Only relevant for certain models.",
                "meta": []
              },
              {
                "name": "batch_1_day_max_input_tokens",
                "type": "integer",
                "description": "The maximum batch input tokens per day. Only relevant for certain models.",
                "meta": []
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ProjectRateLimitUpdateRequest",
              "canonical": "objects/ProjectRateLimitUpdateRequest",
              "label": "ProjectRateLimitUpdateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The updated [ProjectRateLimit](/docs/api-reference/project-rate-limits/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "The project rate limit object",
    "description": "Represents a project rate limit config.",
    "canonical": "project-rate-limits/object",
    "definitions": [
      {
        "title": "ProjectRateLimit",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always `project.rate_limit`",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "project.rate_limit"
              }
            ],
            "properties": [
              {
                "name": "project.rate_limit",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model this rate limit applies to.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "max_requests_per_1_minute",
            "type": "integer",
            "description": "The maximum requests per minute.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "max_tokens_per_1_minute",
            "type": "integer",
            "description": "The maximum tokens per minute.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "max_images_per_1_minute",
            "type": "integer",
            "description": "The maximum images per minute. Only present for relevant models.",
            "meta": []
          },
          {
            "name": "max_audio_megabytes_per_1_minute",
            "type": "integer",
            "description": "The maximum audio megabytes per minute. Only present for relevant models.",
            "meta": []
          },
          {
            "name": "max_requests_per_1_day",
            "type": "integer",
            "description": "The maximum requests per day. Only present for relevant models.",
            "meta": []
          },
          {
            "name": "batch_1_day_max_input_tokens",
            "type": "integer",
            "description": "The maximum batch input tokens per day. Only present for relevant models.",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/ProjectRateLimit",
          "canonical": "objects/ProjectRateLimit",
          "label": "project.rate_limit"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"project.rate_limit\",\n    \"id\": \"rl_ada\",\n    \"model\": \"ada\",\n    \"max_requests_per_1_minute\": 600,\n    \"max_tokens_per_1_minute\": 150000,\n    \"max_images_per_1_minute\": 10\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "ProjectRateLimit",
      "group": [
        "Administration",
        "Project rate limits"
      ]
    }
  },
  {
    "title": "List audit logs",
    "canonical": "audit-logs/list",
    "description": "List user actions and configuration changes within this organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/audit_logs",
      "group": [
        "Administration",
        "Audit logs"
      ],
      "fullPath": "https://api.openai.com/v1/organization/audit_logs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/audit_logs \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"id\": \"audit_log-xxx_yyyymmdd\",\n            \"type\": \"project.archived\",\n            \"effective_at\": 1722461446,\n            \"actor\": {\n                \"type\": \"api_key\",\n                \"api_key\": {\n                    \"type\": \"user\",\n                    \"user\": {\n                        \"id\": \"user-xxx\",\n                        \"email\": \"user@example.com\"\n                    }\n                }\n            },\n            \"project.archived\": {\n                \"id\": \"proj_abc\"\n            },\n        },\n        {\n            \"id\": \"audit_log-yyy__20240101\",\n            \"type\": \"api_key.updated\",\n            \"effective_at\": 1720804190,\n            \"actor\": {\n                \"type\": \"session\",\n                \"session\": {\n                    \"user\": {\n                        \"id\": \"user-xxx\",\n                        \"email\": \"user@example.com\"\n                    },\n                    \"ip_address\": \"127.0.0.1\",\n                    \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\",\n                    \"ja3\": \"a497151ce4338a12c4418c44d375173e\",\n                    \"ja4\": \"q13d0313h3_55b375c5d22e_c7319ce65786\",\n                    \"ip_address_details\": {\n                      \"country\": \"US\",\n                      \"city\": \"San Francisco\",\n                      \"region\": \"California\",\n                      \"region_code\": \"CA\",\n                      \"asn\": \"1234\",\n                      \"latitude\": \"37.77490\",\n                      \"longitude\": \"-122.41940\"\n                    }\n                }\n            },\n            \"api_key.updated\": {\n                \"id\": \"key_xxxx\",\n                \"data\": {\n                    \"scopes\": [\"resource_2.operation_2\"]\n                }\n            },\n        }\n    ],\n    \"first_id\": \"audit_log-xxx__20240101\",\n    \"last_id\": \"audit_log_yyy__20240101\",\n    \"has_more\": true\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "effective_at",
            "type": "object",
            "description": "Return only events whose `effective_at` (Unix seconds) is in this range.",
            "meta": [],
            "properties": [
              {
                "name": "gt",
                "type": "integer",
                "description": "Return only events whose `effective_at` (Unix seconds) is greater than this value.",
                "meta": []
              },
              {
                "name": "gte",
                "type": "integer",
                "description": "Return only events whose `effective_at` (Unix seconds) is greater than or equal to this value.",
                "meta": []
              },
              {
                "name": "lt",
                "type": "integer",
                "description": "Return only events whose `effective_at` (Unix seconds) is less than this value.",
                "meta": []
              },
              {
                "name": "lte",
                "type": "integer",
                "description": "Return only events whose `effective_at` (Unix seconds) is less than or equal to this value.",
                "meta": []
              }
            ]
          },
          {
            "name": "project_ids[]",
            "type": "$$array",
            "description": "Return only events for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "event_types[]",
            "type": "$$array",
            "description": "Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the [audit log object](/docs/api-reference/audit-logs/object).",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "api_key.created",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key.updated",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key.deleted",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "checkpoint_permission.created",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "checkpoint_permission.deleted",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "invite.sent",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "invite.accepted",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "invite.deleted",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "login.succeeded",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "login.failed",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "logout.succeeded",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "logout.failed",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "organization.updated",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "project.created",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "project.updated",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "project.archived",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "service_account.created",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "service_account.updated",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "service_account.deleted",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "rate_limit.updated",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "rate_limit.deleted",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user.added",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user.updated",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user.deleted",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "The event type.",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              },
              "symbolDef": {
                "id": "#/components/schemas/AuditLogEventType",
                "canonical": "objects/AuditLogEventType",
                "label": "AuditLogEventType"
              }
            },
            "symbolDef": {
              "id": "#/components/schemas/AuditLogEventType",
              "canonical": "objects/AuditLogEventType",
              "label": "AuditLogEventType"
            }
          },
          {
            "name": "actor_ids[]",
            "type": "$$array",
            "description": "Return only events performed by these actors. Can be a user ID, a service account ID, or an api key tracking ID.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "actor_emails[]",
            "type": "$$array",
            "description": "Return only events performed by users with these emails.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "resource_ids[]",
            "type": "$$array",
            "description": "Return only events performed on these targets. For example, a project ID updated.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "before",
            "type": "string",
            "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated [Audit Log](/docs/api-reference/audit-logs/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "The audit log object",
    "description": "A log of a user action or configuration change within this organization.",
    "canonical": "audit-logs/object",
    "definitions": [
      {
        "title": "AuditLog",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "The ID of this log.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "type",
            "type": "$$enum",
            "description": "The event type.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "api_key.created",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "api_key.updated",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "api_key.deleted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "checkpoint_permission.created",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "checkpoint_permission.deleted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "invite.sent",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "invite.accepted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "invite.deleted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "login.succeeded",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "login.failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "logout.succeeded",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "logout.failed",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "organization.updated",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "project.created",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "project.updated",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "project.archived",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "service_account.created",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "service_account.updated",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "service_account.deleted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "rate_limit.updated",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "rate_limit.deleted",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "user.added",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "user.updated",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "user.deleted",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            },
            "symbolDef": {
              "id": "#/components/schemas/AuditLogEventType",
              "canonical": "objects/AuditLogEventType",
              "label": "AuditLogEventType"
            }
          },
          {
            "name": "effective_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of the event.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project",
            "type": "object",
            "description": "The project that the action was scoped to. Absent for actions not scoped to projects.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The project ID.",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The project title.",
                "meta": []
              }
            ]
          },
          {
            "name": "actor",
            "type": "object",
            "description": "The actor who performed the audit logged action.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/AuditLogActor",
              "canonical": "objects/AuditLogActor",
              "label": "AuditLogActor"
            },
            "properties": [
              {
                "name": "type",
                "type": "$$enum",
                "description": "The type of actor. Is either `session` or `api_key`.",
                "meta": [
                  {
                    "name": "enum-type",
                    "value": "string"
                  }
                ],
                "properties": [
                  {
                    "name": "session",
                    "type": "string",
                    "description": "",
                    "meta": []
                  },
                  {
                    "name": "api_key",
                    "type": "string",
                    "description": "",
                    "meta": []
                  }
                ],
                "ofProperty": {
                  "name": "",
                  "description": "",
                  "type": "string"
                }
              },
              {
                "name": "session",
                "type": "object",
                "description": "The session in which the audit logged action was performed.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/AuditLogActorSession",
                  "canonical": "objects/AuditLogActorSession",
                  "label": "AuditLogActorSession"
                },
                "properties": [
                  {
                    "name": "user",
                    "type": "object",
                    "description": "The user who performed the audit logged action.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/AuditLogActorUser",
                      "canonical": "objects/AuditLogActorUser",
                      "label": "AuditLogActorUser"
                    },
                    "properties": [
                      {
                        "name": "id",
                        "type": "string",
                        "description": "The user id.",
                        "meta": []
                      },
                      {
                        "name": "email",
                        "type": "string",
                        "description": "The user email.",
                        "meta": []
                      }
                    ]
                  },
                  {
                    "name": "ip_address",
                    "type": "string",
                    "description": "The IP address from which the action was performed.",
                    "meta": []
                  }
                ]
              },
              {
                "name": "api_key",
                "type": "object",
                "description": "The API Key used to perform the audit logged action.",
                "meta": [],
                "symbolDef": {
                  "id": "#/components/schemas/AuditLogActorApiKey",
                  "canonical": "objects/AuditLogActorApiKey",
                  "label": "AuditLogActorApiKey"
                },
                "properties": [
                  {
                    "name": "id",
                    "type": "string",
                    "description": "The tracking id of the API key.",
                    "meta": []
                  },
                  {
                    "name": "type",
                    "type": "$$enum",
                    "description": "The type of API key. Can be either `user` or `service_account`.",
                    "meta": [
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "user",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "service_account",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  },
                  {
                    "name": "user",
                    "type": "object",
                    "description": "The user who performed the audit logged action.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/AuditLogActorUser",
                      "canonical": "objects/AuditLogActorUser",
                      "label": "AuditLogActorUser"
                    },
                    "properties": [
                      {
                        "name": "id",
                        "type": "string",
                        "description": "The user id.",
                        "meta": []
                      },
                      {
                        "name": "email",
                        "type": "string",
                        "description": "The user email.",
                        "meta": []
                      }
                    ]
                  },
                  {
                    "name": "service_account",
                    "type": "object",
                    "description": "The service account that performed the audit logged action.",
                    "meta": [],
                    "symbolDef": {
                      "id": "#/components/schemas/AuditLogActorServiceAccount",
                      "canonical": "objects/AuditLogActorServiceAccount",
                      "label": "AuditLogActorServiceAccount"
                    },
                    "properties": [
                      {
                        "name": "id",
                        "type": "string",
                        "description": "The service account id.",
                        "meta": []
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "name": "api_key.created",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The tracking ID of the API key.",
                "meta": []
              },
              {
                "name": "data",
                "type": "object",
                "description": "The payload used to create the API key.",
                "meta": [],
                "properties": [
                  {
                    "name": "scopes",
                    "type": "$$array",
                    "description": "A list of scopes allowed for the API key, e.g. `[\"api.model.request\"]`",
                    "meta": [],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              }
            ]
          },
          {
            "name": "api_key.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The tracking ID of the API key.",
                "meta": []
              },
              {
                "name": "changes_requested",
                "type": "object",
                "description": "The payload used to update the API key.",
                "meta": [],
                "properties": [
                  {
                    "name": "scopes",
                    "type": "$$array",
                    "description": "A list of scopes allowed for the API key, e.g. `[\"api.model.request\"]`",
                    "meta": [],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "string",
                      "properties": [],
                      "description": "",
                      "meta": []
                    }
                  }
                ]
              }
            ]
          },
          {
            "name": "api_key.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The tracking ID of the API key.",
                "meta": []
              }
            ]
          },
          {
            "name": "checkpoint_permission.created",
            "type": "object",
            "description": "The project and fine-tuned model checkpoint that the checkpoint permission was created for.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The ID of the checkpoint permission.",
                "meta": []
              },
              {
                "name": "data",
                "type": "object",
                "description": "The payload used to create the checkpoint permission.",
                "meta": [],
                "properties": [
                  {
                    "name": "project_id",
                    "type": "string",
                    "description": "The ID of the project that the checkpoint permission was created for.",
                    "meta": []
                  },
                  {
                    "name": "fine_tuned_model_checkpoint",
                    "type": "string",
                    "description": "The ID of the fine-tuned model checkpoint.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "checkpoint_permission.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The ID of the checkpoint permission.",
                "meta": []
              }
            ]
          },
          {
            "name": "invite.sent",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The ID of the invite.",
                "meta": []
              },
              {
                "name": "data",
                "type": "object",
                "description": "The payload used to create the invite.",
                "meta": [],
                "properties": [
                  {
                    "name": "email",
                    "type": "string",
                    "description": "The email invited to the organization.",
                    "meta": []
                  },
                  {
                    "name": "role",
                    "type": "string",
                    "description": "The role the email was invited to be. Is either `owner` or `member`.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "invite.accepted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The ID of the invite.",
                "meta": []
              }
            ]
          },
          {
            "name": "invite.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The ID of the invite.",
                "meta": []
              }
            ]
          },
          {
            "name": "login.failed",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "error_code",
                "type": "string",
                "description": "The error code of the failure.",
                "meta": []
              },
              {
                "name": "error_message",
                "type": "string",
                "description": "The error message of the failure.",
                "meta": []
              }
            ]
          },
          {
            "name": "logout.failed",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "error_code",
                "type": "string",
                "description": "The error code of the failure.",
                "meta": []
              },
              {
                "name": "error_message",
                "type": "string",
                "description": "The error message of the failure.",
                "meta": []
              }
            ]
          },
          {
            "name": "organization.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The organization ID.",
                "meta": []
              },
              {
                "name": "changes_requested",
                "type": "object",
                "description": "The payload used to update the organization settings.",
                "meta": [],
                "properties": [
                  {
                    "name": "title",
                    "type": "string",
                    "description": "The organization title.",
                    "meta": []
                  },
                  {
                    "name": "description",
                    "type": "string",
                    "description": "The organization description.",
                    "meta": []
                  },
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The organization name.",
                    "meta": []
                  },
                  {
                    "name": "settings",
                    "type": "object",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "threads_ui_visibility",
                        "type": "string",
                        "description": "Visibility of the threads page which shows messages created with the Assistants API and Playground. One of `ANY_ROLE`, `OWNERS`, or `NONE`.",
                        "meta": []
                      },
                      {
                        "name": "usage_dashboard_visibility",
                        "type": "string",
                        "description": "Visibility of the usage dashboard which shows activity and costs for your organization. One of `ANY_ROLE` or `OWNERS`.",
                        "meta": []
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "name": "project.created",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The project ID.",
                "meta": []
              },
              {
                "name": "data",
                "type": "object",
                "description": "The payload used to create the project.",
                "meta": [],
                "properties": [
                  {
                    "name": "name",
                    "type": "string",
                    "description": "The project name.",
                    "meta": []
                  },
                  {
                    "name": "title",
                    "type": "string",
                    "description": "The title of the project as seen on the dashboard.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "project.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The project ID.",
                "meta": []
              },
              {
                "name": "changes_requested",
                "type": "object",
                "description": "The payload used to update the project.",
                "meta": [],
                "properties": [
                  {
                    "name": "title",
                    "type": "string",
                    "description": "The title of the project as seen on the dashboard.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "project.archived",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The project ID.",
                "meta": []
              }
            ]
          },
          {
            "name": "rate_limit.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The rate limit ID",
                "meta": []
              },
              {
                "name": "changes_requested",
                "type": "object",
                "description": "The payload used to update the rate limits.",
                "meta": [],
                "properties": [
                  {
                    "name": "max_requests_per_1_minute",
                    "type": "integer",
                    "description": "The maximum requests per minute.",
                    "meta": []
                  },
                  {
                    "name": "max_tokens_per_1_minute",
                    "type": "integer",
                    "description": "The maximum tokens per minute.",
                    "meta": []
                  },
                  {
                    "name": "max_images_per_1_minute",
                    "type": "integer",
                    "description": "The maximum images per minute. Only relevant for certain models.",
                    "meta": []
                  },
                  {
                    "name": "max_audio_megabytes_per_1_minute",
                    "type": "integer",
                    "description": "The maximum audio megabytes per minute. Only relevant for certain models.",
                    "meta": []
                  },
                  {
                    "name": "max_requests_per_1_day",
                    "type": "integer",
                    "description": "The maximum requests per day. Only relevant for certain models.",
                    "meta": []
                  },
                  {
                    "name": "batch_1_day_max_input_tokens",
                    "type": "integer",
                    "description": "The maximum batch input tokens per day. Only relevant for certain models.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "rate_limit.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The rate limit ID",
                "meta": []
              }
            ]
          },
          {
            "name": "service_account.created",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The service account ID.",
                "meta": []
              },
              {
                "name": "data",
                "type": "object",
                "description": "The payload used to create the service account.",
                "meta": [],
                "properties": [
                  {
                    "name": "role",
                    "type": "string",
                    "description": "The role of the service account. Is either `owner` or `member`.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "service_account.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The service account ID.",
                "meta": []
              },
              {
                "name": "changes_requested",
                "type": "object",
                "description": "The payload used to updated the service account.",
                "meta": [],
                "properties": [
                  {
                    "name": "role",
                    "type": "string",
                    "description": "The role of the service account. Is either `owner` or `member`.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "service_account.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The service account ID.",
                "meta": []
              }
            ]
          },
          {
            "name": "user.added",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The user ID.",
                "meta": []
              },
              {
                "name": "data",
                "type": "object",
                "description": "The payload used to add the user to the project.",
                "meta": [],
                "properties": [
                  {
                    "name": "role",
                    "type": "string",
                    "description": "The role of the user. Is either `owner` or `member`.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "user.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The project ID.",
                "meta": []
              },
              {
                "name": "changes_requested",
                "type": "object",
                "description": "The payload used to update the user.",
                "meta": [],
                "properties": [
                  {
                    "name": "role",
                    "type": "string",
                    "description": "The role of the user. Is either `owner` or `member`.",
                    "meta": []
                  }
                ]
              }
            ]
          },
          {
            "name": "user.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The user ID.",
                "meta": []
              }
            ]
          },
          {
            "name": "certificate.created",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The certificate ID.",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the certificate.",
                "meta": []
              }
            ]
          },
          {
            "name": "certificate.updated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The certificate ID.",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the certificate.",
                "meta": []
              }
            ]
          },
          {
            "name": "certificate.deleted",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "id",
                "type": "string",
                "description": "The certificate ID.",
                "meta": []
              },
              {
                "name": "name",
                "type": "string",
                "description": "The name of the certificate.",
                "meta": []
              },
              {
                "name": "certificate",
                "type": "string",
                "description": "The certificate content in PEM format.",
                "meta": []
              }
            ]
          },
          {
            "name": "certificates.activated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "certificates",
                "type": "$$array",
                "description": "",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The certificate ID.",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the certificate.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              }
            ]
          },
          {
            "name": "certificates.deactivated",
            "type": "object",
            "description": "The details for events with this `type`.",
            "meta": [],
            "properties": [
              {
                "name": "certificates",
                "type": "$$array",
                "description": "",
                "meta": [],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "object",
                  "properties": [
                    {
                      "name": "id",
                      "type": "string",
                      "description": "The certificate ID.",
                      "meta": []
                    },
                    {
                      "name": "name",
                      "type": "string",
                      "description": "The name of the certificate.",
                      "meta": []
                    }
                  ],
                  "description": "",
                  "meta": []
                }
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/AuditLog",
          "canonical": "objects/AuditLog",
          "label": "AuditLog"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"id\": \"req_xxx_20240101\",\n    \"type\": \"api_key.created\",\n    \"effective_at\": 1720804090,\n    \"actor\": {\n        \"type\": \"session\",\n        \"session\": {\n            \"user\": {\n                \"id\": \"user-xxx\",\n                \"email\": \"user@example.com\"\n            },\n            \"ip_address\": \"127.0.0.1\",\n            \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36\"\n        }\n    },\n    \"api_key.created\": {\n        \"id\": \"key_xxxx\",\n        \"data\": {\n            \"scopes\": [\"resource.operation\"]\n        }\n    }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "AuditLog",
      "group": [
        "Administration",
        "Audit logs"
      ]
    }
  },
  {
    "title": "Completions",
    "canonical": "usage/completions",
    "description": "Get completions usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/completions",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/completions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/completions?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.completions.result\",\n                    \"input_tokens\": 1000,\n                    \"output_tokens\": 500,\n                    \"input_cached_tokens\": 800,\n                    \"input_audio_tokens\": 0,\n                    \"output_audio_tokens\": 0,\n                    \"num_model_requests\": 5,\n                    \"project_id\": null,\n                    \"user_id\": null,\n                    \"api_key_id\": null,\n                    \"model\": null,\n                    \"batch\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": true,\n    \"next_page\": \"page_AAAAAGdGxdEiJdKOAAAAAGcqsYA=\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "user_ids",
            "type": "$$array",
            "description": "Return only usage for these users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "api_key_ids",
            "type": "$$array",
            "description": "Return only usage for these API keys.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "models",
            "type": "$$array",
            "description": "Return only usage for these models.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "batch",
            "type": "boolean",
            "description": "If `true`, return batch jobs only. If `false`, return non-batch jobs only. By default, return both.\n",
            "meta": []
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `batch` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "batch",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Completions usage](/docs/api-reference/usage/completions_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Completions usage object",
    "description": "The aggregated completions usage details of the specific time bucket.",
    "canonical": "usage/completions_object",
    "definitions": [
      {
        "title": "UsageCompletionsResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.completions.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.completions.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "input_tokens",
            "type": "integer",
            "description": "The aggregated number of text input tokens used, including cached tokens. For customers subscribe to scale tier, this includes scale tier tokens.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "input_cached_tokens",
            "type": "integer",
            "description": "The aggregated number of text input tokens that has been cached from previous requests. For customers subscribe to scale tier, this includes scale tier tokens.",
            "meta": []
          },
          {
            "name": "output_tokens",
            "type": "integer",
            "description": "The aggregated number of text output tokens used. For customers subscribe to scale tier, this includes scale tier tokens.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "input_audio_tokens",
            "type": "integer",
            "description": "The aggregated number of audio input tokens used, including cached tokens.",
            "meta": []
          },
          {
            "name": "output_audio_tokens",
            "type": "integer",
            "description": "The aggregated number of audio output tokens used.",
            "meta": []
          },
          {
            "name": "num_model_requests",
            "type": "integer",
            "description": "The count of requests made to the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "When `group_by=user_id`, this field provides the user ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "api_key_id",
            "type": "string",
            "description": "When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "When `group_by=model`, this field provides the model name of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "batch",
            "type": "boolean",
            "description": "When `group_by=batch`, this field tells whether the grouped usage result is batch or not.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageCompletionsResult",
          "canonical": "objects/UsageCompletionsResult",
          "label": "organization.usage.completions.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.completions.result\",\n    \"input_tokens\": 5000,\n    \"output_tokens\": 1000,\n    \"input_cached_tokens\": 4000,\n    \"input_audio_tokens\": 300,\n    \"output_audio_tokens\": 200,\n    \"num_model_requests\": 5,\n    \"project_id\": \"proj_abc\",\n    \"user_id\": \"user-abc\",\n    \"api_key_id\": \"key_abc\",\n    \"model\": \"gpt-4o-mini-2024-07-18\",\n    \"batch\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageCompletionsResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Embeddings",
    "canonical": "usage/embeddings",
    "description": "Get embeddings usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/embeddings",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/embeddings",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/embeddings?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.embeddings.result\",\n                    \"input_tokens\": 16,\n                    \"num_model_requests\": 2,\n                    \"project_id\": null,\n                    \"user_id\": null,\n                    \"api_key_id\": null,\n                    \"model\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "user_ids",
            "type": "$$array",
            "description": "Return only usage for these users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "api_key_ids",
            "type": "$$array",
            "description": "Return only usage for these API keys.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "models",
            "type": "$$array",
            "description": "Return only usage for these models.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Embeddings usage](/docs/api-reference/usage/embeddings_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Embeddings usage object",
    "description": "The aggregated embeddings usage details of the specific time bucket.",
    "canonical": "usage/embeddings_object",
    "definitions": [
      {
        "title": "UsageEmbeddingsResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.embeddings.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.embeddings.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "input_tokens",
            "type": "integer",
            "description": "The aggregated number of input tokens used.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "num_model_requests",
            "type": "integer",
            "description": "The count of requests made to the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "When `group_by=user_id`, this field provides the user ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "api_key_id",
            "type": "string",
            "description": "When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "When `group_by=model`, this field provides the model name of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageEmbeddingsResult",
          "canonical": "objects/UsageEmbeddingsResult",
          "label": "organization.usage.embeddings.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.embeddings.result\",\n    \"input_tokens\": 20,\n    \"num_model_requests\": 2,\n    \"project_id\": \"proj_abc\",\n    \"user_id\": \"user-abc\",\n    \"api_key_id\": \"key_abc\",\n    \"model\": \"text-embedding-ada-002-v2\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageEmbeddingsResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Moderations",
    "canonical": "usage/moderations",
    "description": "Get moderations usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/moderations",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/moderations",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/moderations?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.moderations.result\",\n                    \"input_tokens\": 16,\n                    \"num_model_requests\": 2,\n                    \"project_id\": null,\n                    \"user_id\": null,\n                    \"api_key_id\": null,\n                    \"model\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "user_ids",
            "type": "$$array",
            "description": "Return only usage for these users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "api_key_ids",
            "type": "$$array",
            "description": "Return only usage for these API keys.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "models",
            "type": "$$array",
            "description": "Return only usage for these models.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Moderations usage](/docs/api-reference/usage/moderations_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Moderations usage object",
    "description": "The aggregated moderations usage details of the specific time bucket.",
    "canonical": "usage/moderations_object",
    "definitions": [
      {
        "title": "UsageModerationsResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.moderations.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.moderations.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "input_tokens",
            "type": "integer",
            "description": "The aggregated number of input tokens used.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "num_model_requests",
            "type": "integer",
            "description": "The count of requests made to the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "When `group_by=user_id`, this field provides the user ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "api_key_id",
            "type": "string",
            "description": "When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "When `group_by=model`, this field provides the model name of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageModerationsResult",
          "canonical": "objects/UsageModerationsResult",
          "label": "organization.usage.moderations.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.moderations.result\",\n    \"input_tokens\": 20,\n    \"num_model_requests\": 2,\n    \"project_id\": \"proj_abc\",\n    \"user_id\": \"user-abc\",\n    \"api_key_id\": \"key_abc\",\n    \"model\": \"text-moderation\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageModerationsResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Images",
    "canonical": "usage/images",
    "description": "Get images usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/images",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/images",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/images?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.images.result\",\n                    \"images\": 2,\n                    \"num_model_requests\": 2,\n                    \"size\": null,\n                    \"source\": null,\n                    \"project_id\": null,\n                    \"user_id\": null,\n                    \"api_key_id\": null,\n                    \"model\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "sources",
            "type": "$$array",
            "description": "Return only usages for these sources. Possible values are `image.generation`, `image.edit`, `image.variation` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "image.generation",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "image.edit",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "image.variation",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "sizes",
            "type": "$$array",
            "description": "Return only usages for these image sizes. Possible values are `256x256`, `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "256x256",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "512x512",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "1024x1024",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "1792x1792",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "1024x1792",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "user_ids",
            "type": "$$array",
            "description": "Return only usage for these users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "api_key_ids",
            "type": "$$array",
            "description": "Return only usage for these API keys.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "models",
            "type": "$$array",
            "description": "Return only usage for these models.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `size`, `source` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "size",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "source",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Images usage](/docs/api-reference/usage/images_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Images usage object",
    "description": "The aggregated images usage details of the specific time bucket.",
    "canonical": "usage/images_object",
    "definitions": [
      {
        "title": "UsageImagesResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.images.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.images.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "images",
            "type": "integer",
            "description": "The number of images processed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "num_model_requests",
            "type": "integer",
            "description": "The count of requests made to the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "source",
            "type": "string",
            "description": "When `group_by=source`, this field provides the source of the grouped usage result, possible values are `image.generation`, `image.edit`, `image.variation`.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "size",
            "type": "string",
            "description": "When `group_by=size`, this field provides the image size of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "When `group_by=user_id`, this field provides the user ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "api_key_id",
            "type": "string",
            "description": "When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "When `group_by=model`, this field provides the model name of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageImagesResult",
          "canonical": "objects/UsageImagesResult",
          "label": "organization.usage.images.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.images.result\",\n    \"images\": 2,\n    \"num_model_requests\": 2,\n    \"size\": \"1024x1024\",\n    \"source\": \"image.generation\",\n    \"project_id\": \"proj_abc\",\n    \"user_id\": \"user-abc\",\n    \"api_key_id\": \"key_abc\",\n    \"model\": \"dall-e-3\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageImagesResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Audio speeches",
    "canonical": "usage/audio_speeches",
    "description": "Get audio speeches usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/audio_speeches",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/audio_speeches",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/audio_speeches?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.audio_speeches.result\",\n                    \"characters\": 45,\n                    \"num_model_requests\": 1,\n                    \"project_id\": null,\n                    \"user_id\": null,\n                    \"api_key_id\": null,\n                    \"model\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "user_ids",
            "type": "$$array",
            "description": "Return only usage for these users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "api_key_ids",
            "type": "$$array",
            "description": "Return only usage for these API keys.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "models",
            "type": "$$array",
            "description": "Return only usage for these models.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Audio speeches usage](/docs/api-reference/usage/audio_speeches_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Audio speeches usage object",
    "description": "The aggregated audio speeches usage details of the specific time bucket.",
    "canonical": "usage/audio_speeches_object",
    "definitions": [
      {
        "title": "UsageAudioSpeechesResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.audio_speeches.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.audio_speeches.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "characters",
            "type": "integer",
            "description": "The number of characters processed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "num_model_requests",
            "type": "integer",
            "description": "The count of requests made to the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "When `group_by=user_id`, this field provides the user ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "api_key_id",
            "type": "string",
            "description": "When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "When `group_by=model`, this field provides the model name of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageAudioSpeechesResult",
          "canonical": "objects/UsageAudioSpeechesResult",
          "label": "organization.usage.audio_speeches.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.audio_speeches.result\",\n    \"characters\": 45,\n    \"num_model_requests\": 1,\n    \"project_id\": \"proj_abc\",\n    \"user_id\": \"user-abc\",\n    \"api_key_id\": \"key_abc\",\n    \"model\": \"tts-1\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageAudioSpeechesResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Audio transcriptions",
    "canonical": "usage/audio_transcriptions",
    "description": "Get audio transcriptions usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/audio_transcriptions",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/audio_transcriptions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/audio_transcriptions?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.audio_transcriptions.result\",\n                    \"seconds\": 20,\n                    \"num_model_requests\": 1,\n                    \"project_id\": null,\n                    \"user_id\": null,\n                    \"api_key_id\": null,\n                    \"model\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "user_ids",
            "type": "$$array",
            "description": "Return only usage for these users.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "api_key_ids",
            "type": "$$array",
            "description": "Return only usage for these API keys.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "models",
            "type": "$$array",
            "description": "Return only usage for these models.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "user_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "api_key_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "model",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Audio transcriptions usage](/docs/api-reference/usage/audio_transcriptions_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Audio transcriptions usage object",
    "description": "The aggregated audio transcriptions usage details of the specific time bucket.",
    "canonical": "usage/audio_transcriptions_object",
    "definitions": [
      {
        "title": "UsageAudioTranscriptionsResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.audio_transcriptions.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.audio_transcriptions.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "seconds",
            "type": "integer",
            "description": "The number of seconds processed.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "num_model_requests",
            "type": "integer",
            "description": "The count of requests made to the model.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "user_id",
            "type": "string",
            "description": "When `group_by=user_id`, this field provides the user ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "api_key_id",
            "type": "string",
            "description": "When `group_by=api_key_id`, this field provides the API key ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "When `group_by=model`, this field provides the model name of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageAudioTranscriptionsResult",
          "canonical": "objects/UsageAudioTranscriptionsResult",
          "label": "organization.usage.audio_transcriptions.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.audio_transcriptions.result\",\n    \"seconds\": 10,\n    \"num_model_requests\": 1,\n    \"project_id\": \"proj_abc\",\n    \"user_id\": \"user-abc\",\n    \"api_key_id\": \"key_abc\",\n    \"model\": \"tts-1\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageAudioTranscriptionsResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Vector stores",
    "canonical": "usage/vector_stores",
    "description": "Get vector stores usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/vector_stores",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/vector_stores",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/vector_stores?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.vector_stores.result\",\n                    \"usage_bytes\": 1024,\n                    \"project_id\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                },
                {
                  "name": "const",
                  "value": "project_id"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Vector stores usage](/docs/api-reference/usage/vector_stores_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Vector stores usage object",
    "description": "The aggregated vector stores usage details of the specific time bucket.",
    "canonical": "usage/vector_stores_object",
    "definitions": [
      {
        "title": "UsageVectorStoresResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.vector_stores.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.vector_stores.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "usage_bytes",
            "type": "integer",
            "description": "The vector stores usage in bytes.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageVectorStoresResult",
          "canonical": "objects/UsageVectorStoresResult",
          "label": "organization.usage.vector_stores.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.vector_stores.result\",\n    \"usage_bytes\": 1024,\n    \"project_id\": \"proj_abc\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageVectorStoresResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Code interpreter sessions",
    "canonical": "usage/code_interpreter_sessions",
    "description": "Get code interpreter sessions usage details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/usage/code_interpreter_sessions",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/usage/code_interpreter_sessions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/usage/code_interpreter_sessions?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.usage.code_interpreter_sessions.result\",\n                    \"num_sessions\": 1,\n                    \"project_id\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "1m",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1h",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only usage for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the usage data by the specified fields. Support fields include `project_id`.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                },
                {
                  "name": "const",
                  "value": "project_id"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n",
            "meta": []
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Code interpreter sessions usage](/docs/api-reference/usage/code_interpreter_sessions_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Code interpreter sessions usage object",
    "description": "The aggregated code interpreter sessions usage details of the specific time bucket.",
    "canonical": "usage/code_interpreter_sessions_object",
    "definitions": [
      {
        "title": "UsageCodeInterpreterSessionsResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.usage.code_interpreter_sessions.result"
              }
            ],
            "properties": [
              {
                "name": "organization.usage.code_interpreter_sessions.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "num_sessions",
            "type": "integer",
            "description": "The number of code interpreter sessions.",
            "meta": []
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped usage result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/UsageCodeInterpreterSessionsResult",
          "canonical": "objects/UsageCodeInterpreterSessionsResult",
          "label": "organization.usage.code_interpreter_sessions.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.usage.code_interpreter_sessions.result\",\n    \"num_sessions\": 1,\n    \"project_id\": \"proj_abc\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "UsageCodeInterpreterSessionsResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Costs",
    "canonical": "usage/costs",
    "description": "Get costs details for the organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/costs",
      "group": [
        "Administration",
        "Usage"
      ],
      "fullPath": "https://api.openai.com/v1/organization/costs",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/costs?start_time=1730419200&limit=1\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"page\",\n    \"data\": [\n        {\n            \"object\": \"bucket\",\n            \"start_time\": 1730419200,\n            \"end_time\": 1730505600,\n            \"results\": [\n                {\n                    \"object\": \"organization.costs.result\",\n                    \"amount\": {\n                        \"value\": 0.06,\n                        \"currency\": \"usd\"\n                    },\n                    \"line_item\": null,\n                    \"project_id\": null\n                }\n            ]\n        }\n    ],\n    \"has_more\": false,\n    \"next_page\": null\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "start_time",
            "type": "integer",
            "description": "Start time (Unix seconds) of the query time range, inclusive.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "end_time",
            "type": "integer",
            "description": "End time (Unix seconds) of the query time range, exclusive.",
            "meta": []
          },
          {
            "name": "bucket_width",
            "type": "$$enum",
            "description": "Width of each time bucket in response. Currently only `1d` is supported, default to `1d`.",
            "meta": [
              {
                "name": "defaults",
                "value": "1d"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "1d"
              }
            ],
            "properties": [
              {
                "name": "1d",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "project_ids",
            "type": "$$array",
            "description": "Return only costs for these projects.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "string",
              "properties": [],
              "description": "",
              "meta": []
            }
          },
          {
            "name": "group_by",
            "type": "$$array",
            "description": "Group the costs by the specified fields. Support fields include `project_id`, `line_item` and any combination of them.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "project_id",
                  "type": "string",
                  "description": "",
                  "meta": []
                },
                {
                  "name": "line_item",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of buckets to be returned. Limit can range between 1 and 180, and the default is 7.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 7
              }
            ]
          },
          {
            "name": "page",
            "type": "string",
            "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.",
            "meta": []
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of paginated, time bucketed [Costs](/docs/api-reference/usage/costs_object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Costs object",
    "description": "The aggregated costs details of the specific time bucket.",
    "canonical": "usage/costs_object",
    "definitions": [
      {
        "title": "CostsResult",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "organization.costs.result"
              }
            ],
            "properties": [
              {
                "name": "organization.costs.result",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "amount",
            "type": "object",
            "description": "The monetary value in its associated currency.",
            "meta": [],
            "properties": [
              {
                "name": "value",
                "type": "number",
                "description": "The numeric value of the cost.",
                "meta": []
              },
              {
                "name": "currency",
                "type": "string",
                "description": "Lowercase ISO-4217 currency e.g. \"usd\"",
                "meta": []
              }
            ]
          },
          {
            "name": "line_item",
            "type": "string",
            "description": "When `group_by=line_item`, this field provides the line item of the grouped costs result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          },
          {
            "name": "project_id",
            "type": "string",
            "description": "When `group_by=project_id`, this field provides the project ID of the grouped costs result.",
            "meta": [
              {
                "name": "nullable",
                "value": "true"
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CostsResult",
          "canonical": "objects/CostsResult",
          "label": "organization.costs.result"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n    \"object\": \"organization.costs.result\",\n    \"amount\": {\n      \"value\": 0.06,\n      \"currency\": \"usd\"\n    },\n    \"line_item\": \"Image models\",\n    \"project_id\": \"proj_abc\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CostsResult",
      "group": [
        "Administration",
        "Usage"
      ]
    }
  },
  {
    "title": "Upload certificate",
    "canonical": "certificates/uploadCertificate",
    "description": "Upload a certificate to the organization. This does **not** automatically activate the certificate.\n\nOrganizations can upload up to 50 certificates.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/certificates",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/certificates \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"name\": \"My Example Certificate\",\n  \"certificate\": \"-----BEGIN CERTIFICATE-----\\\\nMIIDeT...\\\\n-----END CERTIFICATE-----\"\n}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"certificate\",\n  \"id\": \"cert_abc\",\n  \"name\": \"My Example Certificate\",\n  \"created_at\": 1234567,\n  \"certificate_details\": {\n    \"valid_at\": 12345667,\n    \"expires_at\": 12345678\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "An optional name for the certificate",
                "meta": []
              },
              {
                "name": "content",
                "type": "string",
                "description": "The certificate content in PEM format",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/UploadCertificateRequest",
              "canonical": "objects/UploadCertificateRequest",
              "label": "UploadCertificateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A single [Certificate](/docs/api-reference/certificates/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Get certificate",
    "canonical": "certificates/getCertificate",
    "description": "Get a certificate that has been uploaded to the organization.\n\nYou can get a certificate regardless of whether it is active or not.\n",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/certificates/{certificate_id}",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates/{certificate_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl \"https://api.openai.com/v1/organization/certificates/cert_abc?include[]=content\" \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"certificate\",\n  \"id\": \"cert_abc\",\n  \"name\": \"My Example Certificate\",\n  \"created_at\": 1234567,\n  \"certificate_details\": {\n    \"valid_at\": 1234567,\n    \"expires_at\": 12345678,\n    \"content\": \"-----BEGIN CERTIFICATE-----MIIDeT...-----END CERTIFICATE-----\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Path parameters",
        "properties": [
          {
            "name": "cert_id",
            "type": "string",
            "description": "Unique ID of the certificate to retrieve.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          }
        ],
        "type": "$rest.param.path"
      },
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "include",
            "type": "$$array",
            "description": "A list of additional fields to include in the response. Currently the only supported value is `content` to fetch the PEM content of the certificate.",
            "meta": [],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "$$enum",
              "properties": [
                {
                  "name": "content",
                  "type": "string",
                  "description": "",
                  "meta": []
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "enum-type",
                  "value": "string"
                },
                {
                  "name": "const",
                  "value": "content"
                }
              ],
              "ofProperty": {
                "name": "",
                "description": "",
                "type": "string"
              }
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A single [Certificate](/docs/api-reference/certificates/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Modify certificate",
    "canonical": "certificates/modifyCertificate",
    "description": "Modify a certificate. Note that only the name can be modified.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/certificates/{certificate_id}",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates/{certificate_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X POST https://api.openai.com/v1/organization/certificates/cert_abc \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"name\": \"Renamed Certificate\"\n}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"certificate\",\n  \"id\": \"cert_abc\",\n  \"name\": \"Renamed Certificate\",\n  \"created_at\": 1234567,\n  \"certificate_details\": {\n    \"valid_at\": 12345667,\n    \"expires_at\": 12345678\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "name",
                "type": "string",
                "description": "The updated name for the certificate",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ModifyCertificateRequest",
              "canonical": "objects/ModifyCertificateRequest",
              "label": "ModifyCertificateRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "The updated [Certificate](/docs/api-reference/certificates/object) object.",
        "properties": []
      }
    ]
  },
  {
    "title": "Delete certificate",
    "canonical": "certificates/deleteCertificate",
    "description": "Delete a certificate from the organization.\n\nThe certificate must be inactive for the organization and all projects.\n",
    "type": "rest_delete",
    "category": "rest",
    "context": {
      "method": "delete",
      "path": "/organization/certificates/{certificate_id}",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates/{certificate_id}",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl -X DELETE https://api.openai.com/v1/organization/certificates/cert_abc \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"certificate.deleted\",\n  \"id\": \"cert_abc\"\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Response",
        "description": "A confirmation object indicating the certificate was deleted.",
        "properties": []
      }
    ]
  },
  {
    "title": "List organization certificates",
    "canonical": "certificates/listOrganizationCertificates",
    "description": "List uploaded certificates for this organization.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/certificates",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/certificates \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"organization.certificate\",\n      \"id\": \"cert_abc\",\n      \"name\": \"My Example Certificate\",\n      \"active\": true,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n  ],\n  \"first_id\": \"cert_abc\",\n  \"last_id\": \"cert_abc\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [Certificate](/docs/api-reference/certificates/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "List project certificates",
    "canonical": "certificates/listProjectCertificates",
    "description": "List certificates for this project.",
    "type": "rest_get",
    "category": "rest",
    "context": {
      "method": "get",
      "path": "/organization/projects/{project_id}/certificates",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/certificates",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/certificates \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\"\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"object\": \"organization.project.certificate\",\n      \"id\": \"cert_abc\",\n      \"name\": \"My Example Certificate\",\n      \"active\": true,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n  ],\n  \"first_id\": \"cert_abc\",\n  \"last_id\": \"cert_abc\",\n  \"has_more\": false\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Query parameters",
        "properties": [
          {
            "name": "limit",
            "type": "integer",
            "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n",
            "meta": [
              {
                "name": "defaults",
                "value": 20
              }
            ]
          },
          {
            "name": "after",
            "type": "string",
            "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n",
            "meta": []
          },
          {
            "name": "order",
            "type": "$$enum",
            "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n",
            "meta": [
              {
                "name": "defaults",
                "value": "desc"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "asc",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "desc",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          }
        ],
        "type": "$rest.param.query"
      },
      {
        "title": "Response",
        "description": "A list of [Certificate](/docs/api-reference/certificates/object) objects.",
        "properties": []
      }
    ]
  },
  {
    "title": "Activate certificates for organization",
    "canonical": "certificates/activateOrganizationCertificates",
    "description": "Activate certificates at the organization level.\n\nYou can atomically and idempotently activate up to 10 certificates at a time.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/certificates/activate",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates/activate",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/certificates/activate \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"data\": [\"cert_abc\", \"cert_def\"]\n}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.certificate.activation\",\n  \"data\": [\n    {\n      \"object\": \"organization.certificate\",\n      \"id\": \"cert_abc\",\n      \"name\": \"My Example Certificate\",\n      \"active\": true,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n    {\n      \"object\": \"organization.certificate\",\n      \"id\": \"cert_def\",\n      \"name\": \"My Example Certificate 2\",\n      \"active\": true,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n  ],\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "certificate_ids",
                "type": "$$array",
                "description": "",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "example",
                      "value": "cert_abc"
                    }
                  ]
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ToggleCertificatesRequest",
              "canonical": "objects/ToggleCertificatesRequest",
              "label": "ToggleCertificatesRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A list of [Certificate](/docs/api-reference/certificates/object) objects that were activated.",
        "properties": []
      }
    ]
  },
  {
    "title": "Deactivate certificates for organization",
    "canonical": "certificates/deactivateOrganizationCertificates",
    "description": "Deactivate certificates at the organization level.\n\nYou can atomically and idempotently deactivate up to 10 certificates at a time.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/certificates/deactivate",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/certificates/deactivate",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/certificates/deactivate \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"data\": [\"cert_abc\", \"cert_def\"]\n}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.certificate.deactivation\",\n  \"data\": [\n    {\n      \"object\": \"organization.certificate\",\n      \"id\": \"cert_abc\",\n      \"name\": \"My Example Certificate\",\n      \"active\": false,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n    {\n      \"object\": \"organization.certificate\",\n      \"id\": \"cert_def\",\n      \"name\": \"My Example Certificate 2\",\n      \"active\": false,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n  ],\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "certificate_ids",
                "type": "$$array",
                "description": "",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "example",
                      "value": "cert_abc"
                    }
                  ]
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ToggleCertificatesRequest",
              "canonical": "objects/ToggleCertificatesRequest",
              "label": "ToggleCertificatesRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A list of [Certificate](/docs/api-reference/certificates/object) objects that were deactivated.",
        "properties": []
      }
    ]
  },
  {
    "title": "Activate certificates for project",
    "canonical": "certificates/activateProjectCertificates",
    "description": "Activate certificates at the project level.\n\nYou can atomically and idempotently activate up to 10 certificates at a time.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/certificates/activate",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/certificates/activate",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/certificates/activate \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"data\": [\"cert_abc\", \"cert_def\"]\n}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.project.certificate.activation\",\n  \"data\": [\n    {\n      \"object\": \"organization.project.certificate\",\n      \"id\": \"cert_abc\",\n      \"name\": \"My Example Certificate\",\n      \"active\": true,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n    {\n      \"object\": \"organization.project.certificate\",\n      \"id\": \"cert_def\",\n      \"name\": \"My Example Certificate 2\",\n      \"active\": true,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n  ],\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "certificate_ids",
                "type": "$$array",
                "description": "",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "example",
                      "value": "cert_abc"
                    }
                  ]
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ToggleCertificatesRequest",
              "canonical": "objects/ToggleCertificatesRequest",
              "label": "ToggleCertificatesRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A list of [Certificate](/docs/api-reference/certificates/object) objects that were activated.",
        "properties": []
      }
    ]
  },
  {
    "title": "Deactivate certificates for project",
    "canonical": "certificates/deactivateProjectCertificates",
    "description": "Deactivate certificates at the project level.\n\nYou can atomically and idempotently deactivate up to 10 certificates at a time.\n",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/organization/projects/{project_id}/certificates/deactivate",
      "group": [
        "Administration",
        "Certificates"
      ],
      "fullPath": "https://api.openai.com/v1/organization/projects/{project_id}/certificates/deactivate",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "bash",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/organization/projects/proj_abc/certificates/deactivate \\\n-H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"data\": [\"cert_abc\", \"cert_def\"]\n}'\n"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"organization.project.certificate.deactivation\",\n  \"data\": [\n    {\n      \"object\": \"organization.project.certificate\",\n      \"id\": \"cert_abc\",\n      \"name\": \"My Example Certificate\",\n      \"active\": false,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n    {\n      \"object\": \"organization.project.certificate\",\n      \"id\": \"cert_def\",\n      \"name\": \"My Example Certificate 2\",\n      \"active\": false,\n      \"created_at\": 1234567,\n      \"certificate_details\": {\n        \"valid_at\": 12345667,\n        \"expires_at\": 12345678\n      }\n    },\n  ],\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "certificate_ids",
                "type": "$$array",
                "description": "",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  }
                ],
                "properties": [],
                "ofProperty": {
                  "name": "",
                  "type": "string",
                  "properties": [],
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "example",
                      "value": "cert_abc"
                    }
                  ]
                }
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/ToggleCertificatesRequest",
              "canonical": "objects/ToggleCertificatesRequest",
              "label": "ToggleCertificatesRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "A list of [Certificate](/docs/api-reference/certificates/object) objects that were deactivated.",
        "properties": []
      }
    ]
  },
  {
    "title": "The certificate object",
    "description": "Represents an individual `certificate` uploaded to the organization.",
    "canonical": "certificates/object",
    "definitions": [
      {
        "title": "Certificate",
        "properties": [
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type.\n\n- If creating, updating, or getting a specific certificate, the object type is `certificate`.\n- If listing, activating, or deactivating certificates for the organization, the object type is `organization.certificate`.\n- If listing, activating, or deactivating certificates for a project, the object type is `organization.project.certificate`.\n",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              }
            ],
            "properties": [
              {
                "name": "certificate",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "organization.certificate",
                "type": "string",
                "description": "",
                "meta": []
              },
              {
                "name": "organization.project.certificate",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "id",
            "type": "string",
            "description": "The identifier, which can be referenced in API endpoints",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "name",
            "type": "string",
            "description": "The name of the certificate.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "created_at",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the certificate was uploaded.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "certificate_details",
            "type": "object",
            "description": "",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [
              {
                "name": "valid_at",
                "type": "integer",
                "description": "The Unix timestamp (in seconds) of when the certificate becomes valid.",
                "meta": []
              },
              {
                "name": "expires_at",
                "type": "integer",
                "description": "The Unix timestamp (in seconds) of when the certificate expires.",
                "meta": []
              },
              {
                "name": "content",
                "type": "string",
                "description": "The content of the certificate in PEM format.",
                "meta": []
              }
            ]
          },
          {
            "name": "active",
            "type": "boolean",
            "description": "Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.",
            "meta": []
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/Certificate",
          "canonical": "objects/Certificate",
          "label": "Certificate"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"object\": \"certificate\",\n  \"id\": \"cert_abc\",\n  \"name\": \"My Certificate\",\n  \"created_at\": 1234567,\n  \"certificate_details\": {\n    \"valid_at\": 1234567,\n    \"expires_at\": 12345678,\n    \"content\": \"-----BEGIN CERTIFICATE----- MIIGAjCCA...6znFlOW+ -----END CERTIFICATE-----\"\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "Certificate",
      "group": [
        "Administration",
        "Certificates"
      ]
    }
  },
  {
    "title": "Create completion",
    "canonical": "completions/create",
    "description": "Creates a completion for the provided prompt and parameters.",
    "type": "rest_post",
    "category": "rest",
    "context": {
      "method": "post",
      "path": "/completions",
      "group": [
        "Legacy",
        "Completions"
      ],
      "fullPath": "https://api.openai.com/v1/completions",
      "servers": [
        "https://api.openai.com/v1"
      ],
      "scopes": []
    },
    "examples": {
      "groups": [
        {
          "description": "Example request",
          "examples": [
            {
              "description": "No streaming",
              "codeblock": {
                "title": "No streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"VAR_completion_model_id\",\n    \"prompt\": \"Say this is a test\",\n    \"max_tokens\": 7,\n    \"temperature\": 0\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nclient.completions.create(\n  model=\"VAR_completion_model_id\",\n  prompt=\"Say this is a test\",\n  max_tokens=7,\n  temperature=0\n)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const completion = await openai.completions.create({\n    model: \"VAR_completion_model_id\",\n    prompt: \"Say this is a test.\",\n    max_tokens: 7,\n    temperature: 0,\n  });\n\n  console.log(completion);\n}\nmain();"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "curl",
                    "language": "bash",
                    "code": "curl https://api.openai.com/v1/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n  -d '{\n    \"model\": \"VAR_completion_model_id\",\n    \"prompt\": \"Say this is a test\",\n    \"max_tokens\": 7,\n    \"temperature\": 0,\n    \"stream\": true\n  }'\n"
                  },
                  {
                    "title": "python",
                    "language": "python",
                    "code": "from openai import OpenAI\nclient = OpenAI()\n\nfor chunk in client.completions.create(\n  model=\"VAR_completion_model_id\",\n  prompt=\"Say this is a test\",\n  max_tokens=7,\n  temperature=0,\n  stream=True\n):\n  print(chunk.choices[0].text)\n"
                  },
                  {
                    "title": "node.js",
                    "language": "js",
                    "code": "import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function main() {\n  const stream = await openai.completions.create({\n    model: \"VAR_completion_model_id\",\n    prompt: \"Say this is a test.\",\n    stream: true,\n  });\n\n  for await (const chunk of stream) {\n    console.log(chunk.choices[0].text)\n  }\n}\nmain();"
                  }
                ]
              }
            }
          ]
        },
        {
          "description": "Example response",
          "examples": [
            {
              "description": "No streaming",
              "codeblock": {
                "title": "No streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7\",\n  \"object\": \"text_completion\",\n  \"created\": 1589478378,\n  \"model\": \"VAR_completion_model_id\",\n  \"system_fingerprint\": \"fp_44709d6fcb\",\n  \"choices\": [\n    {\n      \"text\": \"\\n\\nThis is indeed a test\",\n      \"index\": 0,\n      \"logprobs\": null,\n      \"finish_reason\": \"length\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 5,\n    \"completion_tokens\": 7,\n    \"total_tokens\": 12\n  }\n}\n"
                  }
                ]
              }
            },
            {
              "description": "Streaming",
              "codeblock": {
                "title": "Streaming",
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"cmpl-7iA7iJjj8V2zOkCGvWF2hAkDWBQZe\",\n  \"object\": \"text_completion\",\n  \"created\": 1690759702,\n  \"choices\": [\n    {\n      \"text\": \"This\",\n      \"index\": 0,\n      \"logprobs\": null,\n      \"finish_reason\": null\n    }\n  ],\n  \"model\": \"gpt-3.5-turbo-instruct\"\n  \"system_fingerprint\": \"fp_44709d6fcb\",\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "definitions": [
      {
        "title": "Request body",
        "variants": [
          {
            "title": "application/json",
            "description": "",
            "properties": [
              {
                "name": "model",
                "type": "$$union",
                "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n",
                "properties": [
                  {
                    "name": "model",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ]
                  },
                  {
                    "name": "model",
                    "type": "$$enum",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "enum-type",
                        "value": "string"
                      }
                    ],
                    "properties": [
                      {
                        "name": "gpt-3.5-turbo-instruct",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "davinci-002",
                        "type": "string",
                        "description": "",
                        "meta": []
                      },
                      {
                        "name": "babbage-002",
                        "type": "string",
                        "description": "",
                        "meta": []
                      }
                    ],
                    "ofProperty": {
                      "name": "",
                      "description": "",
                      "type": "string"
                    }
                  }
                ]
              },
              {
                "name": "prompt",
                "type": "$$xor",
                "description": "The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n",
                "properties": [
                  {
                    "name": "prompt",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "defaults",
                        "value": ""
                      },
                      {
                        "name": "example",
                        "value": "This is a test."
                      }
                    ]
                  },
                  {
                    "name": "prompt",
                    "type": "$$array",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          },
                          {
                            "name": "defaults",
                            "value": ""
                          },
                          {
                            "name": "example",
                            "value": "This is a test."
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "prompt",
                    "type": "$$array",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "[1212, 318, 257, 1332, 13]"
                      }
                    ],
                    "properties": [
                      {
                        "name": "",
                        "type": "integer",
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "prompt",
                    "type": "$$array",
                    "description": "",
                    "meta": [
                      {
                        "name": "required",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "[[1212, 318, 257, 1332, 13]]"
                      }
                    ],
                    "properties": [],
                    "ofProperty": {
                      "name": "",
                      "type": "$$array",
                      "properties": [],
                      "description": "",
                      "meta": [
                        {
                          "name": "required",
                          "value": "true"
                        }
                      ],
                      "ofProperty": {
                        "name": "",
                        "type": "integer",
                        "properties": [],
                        "description": "",
                        "meta": [
                          {
                            "name": "required",
                            "value": "true"
                          }
                        ]
                      }
                    }
                  }
                ],
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": "<|endoftext|>"
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "best_of",
                "type": "integer",
                "description": "Generates `best_of` completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed.\n\nWhen used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return – `best_of` must be greater than `n`.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 20
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "echo",
                "type": "boolean",
                "description": "Echo back the prompt in addition to the completion\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "frequency_penalty",
                "type": "number",
                "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": -2
                  }
                ]
              },
              {
                "name": "logit_bias",
                "type": "object",
                "description": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n\nAs an example, you can pass `{\"50256\": -100}` to prevent the <|endoftext|> token from being generated.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "logprobs",
                "type": "integer",
                "description": "Include the log probabilities on the `logprobs` most likely output tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.\n\nThe maximum value for `logprobs` is 5.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 5
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "max_tokens",
                "type": "integer",
                "description": "The maximum number of [tokens](/tokenizer) that can be generated in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 16
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 16
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "n",
                "type": "integer",
                "description": "How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 128
                  },
                  {
                    "name": "minimum",
                    "value": 1
                  }
                ]
              },
              {
                "name": "presence_penalty",
                "type": "number",
                "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 0
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": -2
                  }
                ]
              },
              {
                "name": "seed",
                "type": "integer",
                "description": "If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\n\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n",
                "meta": [
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "stop",
                "type": "$$xor",
                "description": "Not supported with latest reasoning models `o3` and `o4-mini`.\n\nUp to 4 sequences where the API will stop generating further tokens. The\nreturned text will not contain the stop sequence.\n",
                "properties": [
                  {
                    "name": "stop",
                    "type": "string",
                    "description": "",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": "<|endoftext|>"
                      },
                      {
                        "name": "nullable",
                        "value": "true"
                      },
                      {
                        "name": "example",
                        "value": "\n"
                      }
                    ]
                  },
                  {
                    "name": "stop",
                    "type": "$$array",
                    "description": "",
                    "meta": [],
                    "properties": [
                      {
                        "name": "",
                        "type": "string",
                        "description": "",
                        "meta": [
                          {
                            "name": "example",
                            "value": "[\"\\n\"]"
                          }
                        ]
                      }
                    ]
                  }
                ],
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/StopConfiguration",
                  "canonical": "objects/StopConfiguration",
                  "label": "StopConfiguration"
                }
              },
              {
                "name": "stream",
                "type": "boolean",
                "description": "Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": false
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ]
              },
              {
                "name": "stream_options",
                "type": "object",
                "description": "Options for streaming response. Only set this when you set `stream: true`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  }
                ],
                "symbolDef": {
                  "id": "#/components/schemas/ChatCompletionStreamOptions",
                  "canonical": "objects/ChatCompletionStreamOptions",
                  "label": "ChatCompletionStreamOptions"
                },
                "properties": [
                  {
                    "name": "include_usage",
                    "type": "boolean",
                    "description": "If set, an additional chunk will be streamed before the `data: [DONE]`\nmessage. The `usage` field on this chunk shows the token usage statistics\nfor the entire request, and the `choices` field will always be an empty\narray. \n\nAll other chunks will also include a `usage` field, but with a null\nvalue. **NOTE:** If the stream is interrupted, you may not receive the\nfinal usage chunk which contains the total token usage for the request.\n",
                    "meta": []
                  }
                ]
              },
              {
                "name": "suffix",
                "type": "string",
                "description": "The suffix that comes after a completion of inserted text.\n\nThis parameter is only supported for `gpt-3.5-turbo-instruct`.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": null
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": "test."
                  }
                ]
              },
              {
                "name": "temperature",
                "type": "number",
                "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 2
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "top_p",
                "type": "number",
                "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.\n",
                "meta": [
                  {
                    "name": "defaults",
                    "value": 1
                  },
                  {
                    "name": "nullable",
                    "value": "true"
                  },
                  {
                    "name": "example",
                    "value": 1
                  },
                  {
                    "name": "maximum",
                    "value": 1
                  },
                  {
                    "name": "minimum",
                    "value": 0
                  }
                ]
              },
              {
                "name": "user",
                "type": "string",
                "description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n",
                "meta": [
                  {
                    "name": "example",
                    "value": "user-1234"
                  }
                ]
              }
            ],
            "meta": [
              {
                "name": "contentType",
                "value": "application/json"
              },
              {
                "name": "required",
                "value": "true"
              }
            ],
            "symbolDef": {
              "id": "#/components/schemas/CreateCompletionRequest",
              "canonical": "objects/CreateCompletionRequest",
              "label": "CreateCompletionRequest"
            }
          }
        ],
        "properties": [],
        "meta": [
          {
            "name": "required",
            "value": "true"
          }
        ],
        "type": "$rest.request.body"
      },
      {
        "title": "Response",
        "description": "Returns a [completion](/docs/api-reference/completions/object) object, or a sequence of completion objects if the request is streamed.\n",
        "properties": []
      }
    ]
  },
  {
    "title": "The completion object",
    "description": "Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).\n",
    "canonical": "completions/object",
    "definitions": [
      {
        "title": "CreateCompletionResponse",
        "properties": [
          {
            "name": "id",
            "type": "string",
            "description": "A unique identifier for the completion.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "choices",
            "type": "$$array",
            "description": "The list of completion choices the model generated for the input prompt.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ],
            "properties": [],
            "ofProperty": {
              "name": "",
              "type": "object",
              "properties": [
                {
                  "name": "finish_reason",
                  "type": "$$enum",
                  "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\nor `content_filter` if content was omitted due to a flag from our content filters.\n",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "enum-type",
                      "value": "string"
                    }
                  ],
                  "properties": [
                    {
                      "name": "stop",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "length",
                      "type": "string",
                      "description": "",
                      "meta": []
                    },
                    {
                      "name": "content_filter",
                      "type": "string",
                      "description": "",
                      "meta": []
                    }
                  ],
                  "ofProperty": {
                    "name": "",
                    "description": "",
                    "type": "string"
                  }
                },
                {
                  "name": "index",
                  "type": "integer",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                },
                {
                  "name": "logprobs",
                  "type": "object",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    },
                    {
                      "name": "nullable",
                      "value": "true"
                    }
                  ],
                  "properties": [
                    {
                      "name": "text_offset",
                      "type": "$$array",
                      "description": "",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "integer",
                        "properties": [],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "token_logprobs",
                      "type": "$$array",
                      "description": "",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "number",
                        "properties": [],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "tokens",
                      "type": "$$array",
                      "description": "",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "string",
                        "properties": [],
                        "description": "",
                        "meta": []
                      }
                    },
                    {
                      "name": "top_logprobs",
                      "type": "$$array",
                      "description": "",
                      "meta": [],
                      "properties": [],
                      "ofProperty": {
                        "name": "",
                        "type": "object",
                        "properties": [],
                        "description": "",
                        "meta": []
                      }
                    }
                  ]
                },
                {
                  "name": "text",
                  "type": "string",
                  "description": "",
                  "meta": [
                    {
                      "name": "required",
                      "value": "true"
                    }
                  ]
                }
              ],
              "description": "",
              "meta": [
                {
                  "name": "required",
                  "value": "true"
                }
              ]
            }
          },
          {
            "name": "created",
            "type": "integer",
            "description": "The Unix timestamp (in seconds) of when the completion was created.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "model",
            "type": "string",
            "description": "The model used for completion.",
            "meta": [
              {
                "name": "required",
                "value": "true"
              }
            ]
          },
          {
            "name": "system_fingerprint",
            "type": "string",
            "description": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n",
            "meta": []
          },
          {
            "name": "object",
            "type": "$$enum",
            "description": "The object type, which is always \"text_completion\"",
            "meta": [
              {
                "name": "required",
                "value": "true"
              },
              {
                "name": "enum-type",
                "value": "string"
              },
              {
                "name": "const",
                "value": "text_completion"
              }
            ],
            "properties": [
              {
                "name": "text_completion",
                "type": "string",
                "description": "",
                "meta": []
              }
            ],
            "ofProperty": {
              "name": "",
              "description": "",
              "type": "string"
            }
          },
          {
            "name": "usage",
            "type": "object",
            "description": "Usage statistics for the completion request.",
            "meta": [],
            "symbolDef": {
              "id": "#/components/schemas/CompletionUsage",
              "canonical": "objects/CompletionUsage",
              "label": "CompletionUsage"
            },
            "properties": [
              {
                "name": "completion_tokens",
                "type": "integer",
                "description": "Number of tokens in the generated completion.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "prompt_tokens",
                "type": "integer",
                "description": "Number of tokens in the prompt.",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "total_tokens",
                "type": "integer",
                "description": "Total number of tokens used in the request (prompt + completion).",
                "meta": [
                  {
                    "name": "required",
                    "value": "true"
                  },
                  {
                    "name": "defaults",
                    "value": 0
                  }
                ]
              },
              {
                "name": "completion_tokens_details",
                "type": "object",
                "description": "Breakdown of tokens used in a completion.",
                "meta": [],
                "properties": [
                  {
                    "name": "accepted_prediction_tokens",
                    "type": "integer",
                    "description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "audio_tokens",
                    "type": "integer",
                    "description": "Audio input tokens generated by the model.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "reasoning_tokens",
                    "type": "integer",
                    "description": "Tokens generated by the model for reasoning.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "rejected_prediction_tokens",
                    "type": "integer",
                    "description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  }
                ]
              },
              {
                "name": "prompt_tokens_details",
                "type": "object",
                "description": "Breakdown of tokens used in the prompt.",
                "meta": [],
                "properties": [
                  {
                    "name": "audio_tokens",
                    "type": "integer",
                    "description": "Audio input tokens present in the prompt.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  },
                  {
                    "name": "cached_tokens",
                    "type": "integer",
                    "description": "Cached tokens present in the prompt.",
                    "meta": [
                      {
                        "name": "defaults",
                        "value": 0
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "meta": [],
        "symbolDef": {
          "id": "#/components/schemas/CreateCompletionResponse",
          "canonical": "objects/CreateCompletionResponse",
          "label": "text_completion"
        }
      }
    ],
    "examples": {
      "groups": [
        {
          "description": "Example",
          "examples": [
            {
              "description": "",
              "codeblock": {
                "tabs": [
                  {
                    "title": "",
                    "language": "json",
                    "code": "{\n  \"id\": \"cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7\",\n  \"object\": \"text_completion\",\n  \"created\": 1589478378,\n  \"model\": \"gpt-4-turbo\",\n  \"choices\": [\n    {\n      \"text\": \"\\n\\nThis is indeed a test\",\n      \"index\": 0,\n      \"logprobs\": null,\n      \"finish_reason\": \"length\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 5,\n    \"completion_tokens\": 7,\n    \"total_tokens\": 12\n  }\n}\n"
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    "type": "rest_component_schema",
    "context": {
      "componentSchema": "CreateCompletionResponse",
      "group": [
        "Legacy",
        "Completions"
      ]
    }
  }
]